powered by
Create vector of sample frequencies from vector of species frequencies.
species.to.sample.freq(f)
a vector(x) where x[i] is of the number of samples in the i-th species.
x
x[i]
i
a vector of species frequencies where f[i] is the number of species represented by only i samples.
f[i]
Eric Archer eric.archer@noaa.gov
sample.to.species.freq
data(osa.old.growth) f <- expand.freqs(osa.old.growth) x <- species.to.sample.freq(f) print(f) print(x)
Run the code above in your browser using DataLab