munge_orig_dat: Munge the Original Data Frame.

Description Usage Arguments Value References Examples

View source: R/munge_orig_dat.R

Description

Munge the Original Data Frame.

Usage

1
munge_orig_dat(data = NULL, example = T, fill = NA)

Arguments

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

Value

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).

References

Spanbauer, Trisha L., et al. "Prolonged instability prior to a regime shift." PLoS One 9.10 (2014): e108936.

Examples

1
2
munge_orig_dat() # will not write an object to environment
newDf = munge_orig_dat() # save the object to environment

TrashBirdEcology/regimeDetectionMeasures documentation built on Oct. 13, 2019, 5:15 p.m.