prune_levels: Prune not used taxonomic ranks

View source: R/prune_levels.R

prune_levelsR Documentation

Prune not used taxonomic ranks

Description

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

Usage

prune_levels(object, ...)

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

Arguments

object

An object of class taxlist.

...

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

Value

An object of class taxlist with pruned taxonomic ranks.

See Also

levels()

Examples

## 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)

ropensci/taxlist documentation built on Sept. 17, 2024, 3:39 p.m.