powered by
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)
A data frame with column headings being species names
A vector of indices to extract
Robin K. S. Hankin
If index is length one, the numbers are interpreted as species counts, and the output is coerced to a count object.
index
count
data(saunders) plot(extant(extractor(saunders,1)))
Run the code above in your browser using DataLab