Learn R Programming

taxlist (version 0.3.0)

prune_levels: Prune not used taxonomic ranks

Description

Taxonomic ranks without taxon concepts will be pruned in taxlist objects.

Usage

prune_levels(object, ...)

# S3 method for taxlist prune_levels(object, ...)

Value

An object of class taxlist with pruned taxonomic ranks.

Arguments

object

An object of class taxlist.

...

Further arguments passed among methods (not yet in use).

See Also

Examples

Run this code
## Subset species belonging to Cyperus
Cyperus <- subset(Easplist, TaxonName == "Cyperus", slot = "taxonNames",
    keep_children = TRUE, keep_parents = TRUE)
Cyperus

## Prune not used ranks
prune_levels(Cyperus)

Run the code above in your browser using DataLab