get_sample_stats {biosampleR}R Documentation

Calculate biodiversity measures and summary statistics for a data set using repeated sampling

Description

Calculate biodiversity measures and summary statistics for a data set using repeated sampling

Usage

get_sample_stats(data, sites_col = 1, reps = 100, indices = "all")

Arguments

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.

Value

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.

Examples

stats <- get_sample_stats(BCI, reps = 5)

[Package biosampleR version 1.0.4 Index]