View source: R/calculateMetrics.R
Calculates regime detection metrics across space or time. Calculates distance travelled, Fisher Information, Variance Index, Coefficient of Variation, mean, standard deviation, variance,skewness, and kurtosis. #' @param dataIn A data frame containing columns c(variable, time, value).
1 2 3 | calculateMetrics(dataIn, metrics.to.calc = c("distances", "ews"),
min.samp.sites = 8, direction, yearInd, to.calc = c("EWS", "FI",
"VI"))
|
dataIn |
data frame with columns: sortVar (the sorting variable; latitude or longitude), cellID (cell ID for the spatial grid), variable (species), value (count data). |
metrics.to.calc |
One or more of c("distances", "ews") |
min.samp.sites |
Minimum number of unique sites in the transect (or unique times along the time series) required to analyze the data. Most metrics can be calculated using three data points, although we do not nrecommend this. |
direction |
Direction of the analysis (South-North or East-West) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.