rarefysamples: Rarefy BioTIME data Applies sample-based rarefaction to...

View source: R/rarefyBioTIME.R

rarefysamplesR Documentation

Rarefy BioTIME data Applies sample-based rarefaction to standardise the number of samples per year within a cell-level time series.

Description

Rarefy BioTIME data Applies sample-based rarefaction to standardise the number of samples per year within a cell-level time series.

Usage

rarefysamples(x, measure, resamps)

Arguments

x

(data.frame) BioTIME gridded data to be resampled (in the format of the output of the gridding function).

measure

(character) currency to be retained during the sample-based rarefaction. Can be either defined by a single column name or a vector of two or more column names.

resamps

(integer) number of repetitions. Default is 1.

Value

Returns a single long form data frame containing the total currency of interest (sum) for each species in each year.


BioTIMEr documentation built on June 8, 2025, 10:02 a.m.