rarefysamples {BioTIMEr}R 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.


[Package BioTIMEr version 0.2.4 Index]