extractor: Extract rows of a database in count form

Description Usage Arguments Details Author(s) Examples

Description

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

Usage

1
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.

Author(s)

Robin K. S. Hankin

Examples

1
2


Search within the untb package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.