Description Usage Arguments Value References Examples
View source: R/munge_orig_dat.R
Munge the Original Data Frame.
1 | munge_orig_dat(data = NULL, example = T, fill = NA)
|
data |
A data frame with ENTER DESCRIPTION |
example |
Loads and munges data when parameters data = NULL & Default = T, running the function will load and munge data from Spanbauer et al. 2014. |
fill |
Fills empty cells with this value. Default = NA. Consider using zero (0) as a fill if using species counts. Beware when using NA vs. zero. Default = 0 |
Function returns a data frame in long format with columns specifying site name, time (or spatial unit), variable (e.g. species identity), and value (e.g. species count).
Spanbauer, Trisha L., et al. "Prolonged instability prior to a regime shift." PLoS One 9.10 (2014): e108936.
1 2 | munge_orig_dat() # will not write an object to environment
newDf = munge_orig_dat() # save the object to environment
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.