View source: R/get_sample_stats.R
get_sample_stats | R Documentation |
Calculate biodiversity measures and summary statistics for a data set using repeated sampling
get_sample_stats(data, sites_col = 1, reps = 100, indices = "all")
data |
A data frame of count data, with sites as rows and species as columns. |
sites_col |
The column number of column containing site IDs. |
reps |
The number of resamples to create. |
indices |
A vector of indices to calculate. Use "all" to calculate all indices. Available indices are: abundance, richness, shannon, simpson, chao1, and chao_diff. |
A list of two data frames. The first data frame contains site specific data with sites as rows and summary statistics as columns. The second contains an overall summary of the data.
stats <- get_sample_stats(BCI, reps = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.