Skip to contents

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

Examples

## Subset species belonging to Cyperus
Cyperus <- subset(Easplist, TaxonName == "Cyperus", slot = "taxonNames",
    keep_children = TRUE, keep_parents = TRUE)
Cyperus
#> object size: 21.8 Kb 
#> validation of 'taxlist' object: TRUE 
#> 
#> number of taxon usage names: 99 
#> number of taxon concepts: 45 
#> trait entries: 16 
#> number of trait variables: 1 
#> taxon views: 3 
#> 
#> concepts with parents: 44 
#> concepts with children: 6 
#> 
#> hierarchical levels: form < variety < subspecies < species < complex < genus < family 
#> number of concepts in level form: 0
#> number of concepts in level variety: 3
#> number of concepts in level subspecies: 2
#> number of concepts in level species: 38
#> number of concepts in level complex: 0
#> number of concepts in level genus: 1
#> number of concepts in level family: 1
#> 

## Prune not used ranks
prune_levels(Cyperus)
#> object size: 21.7 Kb 
#> validation of 'taxlist' object: TRUE 
#> 
#> number of taxon usage names: 99 
#> number of taxon concepts: 45 
#> trait entries: 16 
#> number of trait variables: 1 
#> taxon views: 3 
#> 
#> concepts with parents: 44 
#> concepts with children: 6 
#> 
#> hierarchical levels: variety < subspecies < species < genus < family 
#> number of concepts in level variety: 3
#> number of concepts in level subspecies: 2
#> number of concepts in level species: 38
#> number of concepts in level genus: 1
#> number of concepts in level family: 1
#>