extractor

0th

Percentile

Extract rows of a database in count form

Extracts rows of a data frame and, if there is one row only, coerces to a count object, preserving the species names

Keywords
math
Usage
extractor(x, index)
Arguments
x

A data frame with column headings being species names

index

A vector of indices to extract

Details

If index is length one, the numbers are interpreted as species counts, and the output is coereced to a count object.

Aliases
  • extractor
Examples
# NOT RUN {
data(saunders)
plot(extractor(saunders.exposed,1))
# }
Documentation reproduced from package untb, version 1.7-4, License: GPL

Community examples

Looks like there are no examples yet.