View source: R/sample.to.species.freq.R
sample.to.species.freq | R Documentation |
Create vector of species frequencies from vector of sample frequencies.
sample.to.species.freq(x, min.f = NULL)
x |
a vector where |
min.f |
minimum size of return vector. Return vector is zero-padded up to this length if it would normally be shorter. |
a vector(f
) of species frequencies where f[i]
is the
number of species represented by only i
samples.
Eric Archer eric.archer@noaa.gov
species.to.sample.freq
x <- sample(1:20, 20, rep = TRUE)
f <- sample.to.species.freq(x)
print(x)
print(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.