Description Usage Arguments Value Examples
View source: R/calculateHumanInfluence.r
This function calculates the human influence metrics. The parameter names are assumed to be in lower case. Missing data is not allowed and will result in an error.
1 | calculateHumanInfluence(uid, parameter, result, na.rm = F)
|
uid |
a vector that differentiates among sites or site visits. Metrics will be
calculated for each value of |
parameter |
a vector of parameter names for the 11 human influence parameters:
must be one of |
result |
a vector of results |
returns a dataframe with three columns: uid, metric, result
1 2 3 4 5 | hi <- expand.grid(uid = 1:1000, transect = letters[1:10],
parameter = c("wall", "build", "pave", "road", "pipes", "landfl", "park",
"row", "past", "log", "mine"))
hi$result <- sample(c('0', 'C', 'B', 'P'), size = 11 * 10 * 1000, replace = T)
calculateHumanInfluence(hi$uid, hi$parameter, hi$result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.