sample_finite: Take an abundance vector and subsample to size

View source: R/SampleFuns.R

sample_finiteR Documentation

Take an abundance vector and subsample to size

Description

Take a finite sample of individuals without replacement from an integer abundance vector.

Usage

sample_finite(ab, size = sum(ab))

Arguments

ab

A numeric vector of species abundances or relative abundances.

size

Number of individuals to sample, defaults to all of them, a scalar

Value

A numeric vector of species abundances, including 0's

See Also

sample_infinite

Examples

sample_finite(1:9, 15)

mikeroswell/MeanRarity documentation built on May 5, 2024, 4:50 p.m.