sample.to.species.freq: Create Vector of Species Frequencies

Description Usage Arguments Value Author(s) See Also Examples

Description

Create vector of species frequencies from vector of sample frequencies.

Usage

1

Arguments

x

a vector where x[i] is of the number of samples in the i-th species.

min.f

minimum size of return vector. Return vector is zero-padded up to this length if it would normally be shorter.

Value

a vector(f) of species frequencies where f[i] is the number of species represented by only i samples.

Author(s)

Eric Archer eric.archer@noaa.gov

See Also

species.to.sample.freq

Examples

1
2
3
4
x <- sample(1:20, 20, rep = TRUE)
f <- sample.to.species.freq(x)
print(x)
print(f)

sprex documentation built on May 2, 2019, 9:42 a.m.