create_resample {biosampleR}R Documentation

Create multiple resamples of a data set.

Description

Create multiple resamples of a data set.

Usage

create_resample(data, reps = 100, summary = TRUE, seed = sample(0:9999, 1))

Arguments

data

A data frame of count data, with sites as rows and species as columns.

reps

The number of resamples to create.

summary

A logical indicating whether to calculate summary indices using calc_diversity_indices.

seed

A random seed to use for reproducibility.

Value

A list of data frames, if summary = FALSE, each data frame is a resample of the original data set. If summary = TRUE, each data frame is a resample of the original data set with diversity indices calculated using calc_diversity_indices.

Examples

rs <- create_resample(BCI, reps = 10, summary = TRUE)

[Package biosampleR version 1.0.4 Index]