rarify | R Documentation |
Subsample samples of organizms to a fixed count.
rarify(sample, taxon, count, n)
sample |
a vector of sample identifiers |
taxon |
a vector of taxon identifiers |
count |
a vector of counts for each taxa in each sample |
n |
the size of the subsample to select |
d <- expand.grid(sample = 1:2, taxon = c('Ephemeroptera', 'Plecoptera', 'Trichoptera')) d$count <- runif(6, 10, 20) rarify(d$sample, d$taxon, d$count, 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.