cfree14 / freeR

Miscellaneous functions in R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

freeR: Miscellaneous functions in R

Installation

The "freeR" R package can be installed from GitHub with:

# Run if you don't already have devtools installed
install.packages("devtools")

# Run once devtools is successfully installed
devtools::install_github("cfree14/freeR")
library(freeR)

Functions

The package implements miscellaneous functions including functions to:

  • Check the completeness of a dataframe: ?complete
  • Extract linear regression info: ?r2, ?pval, ?slope
  • Raise or lower a number to the nearest x: ?floor1, ?ceiling1
  • Round and format number to specified decimal place: ?roundf
  • Make colors transparent: ?tcolor
  • Interpolate expanded color palettes: ?colorpal
  • Convert text to sentence case: ?sentcase
  • Calculate the number of words in a string: ?nwords
  • Indicate which values are duplicated in a vector: ?which_duplicated
  • Get taxonomic information for marine fish and invertebrates: ?taxa
  • Check marine fish and invertebrate scientific names: ?check_names
  • Suggest correct scientific names for invalid fish and invert names: ?suggest_names
  • Retrieve all fish/invertebrates in FishBase: ?all_fish
  • Retrieve life history trait observations from FishBase: ?fishbase
  • Retrieve life history trait predictions from FishLife: ?fishlife
  • Convert a dataframe with XYZ for multiple layers to a raster brick: ?df2brick
  • Find the first X day in a month over one or many years: ?first_wday_in_month

About

Miscellaneous functions in R


Languages

Language:R 100.0%