View source: R/calc_delta_var.R
calc_delta_var | R Documentation |
Calculate the change in variance with increasing number of sites
calc_delta_var(
data,
col_name,
site_name = "num_sites",
rep_name = "rep",
visualize = FALSE
)
data |
A data frame containing the biodiversity indices to analyze, for a different number of sites over multiple repetitions. |
col_name |
The name of the column containing the biodiversity index to analyze. |
site_name |
The name of the column containing the number of sites. |
rep_name |
The name of the column containing the repetition number. |
visualize |
A logical indicating whether to visualize the results. |
A data frame with the number of sites and the variance and standard deviation of the mean of the biodiversity index for each number of sites.
ss <- generate_subsamples(BCI,
min_sites = 1,
max_sites = 5,
step = 1,
reps = 5)
data <- ss
data <- unlist(data, recursive = FALSE)
data <- do.call(rbind, data)
calc_delta_var(data,
col_name = "richness",
site_name = "num_sites",
rep_name = "rep",
visualize = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.