extractor | R Documentation |
Extracts rows of a data frame and, if there is one row only, coerces to a count object, preserving the species names
extractor(x, index)
x |
A data frame with column headings being species names |
index |
A vector of indices to extract |
If index
is length one, the numbers are interpreted as species
counts, and the output is coerced to a count
object.
Robin K. S. Hankin
data(saunders)
plot(extant(extractor(saunders,1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.