levels: Set and Retrieves Hierarchical Levels

Description Usage Arguments Details Value Author(s) Examples

Description

Taxonomic hierarchies can be set as levels in taxlist objects, ordered from lower to higher levels.

Add taxonomic levels for specific taxon concepts in a taxlist object. Also changes in concept circumscription may implicate changes in its taxonomic hierarchy.

Usage

1
2
## S4 method for signature 'taxlist'
levels(x, ...)

Arguments

x

A taxlist object.

...

Additional arguments passed among methods.

Details

Taxonomic levels will be handled as factors in the taxlist objects. Those levels are useful for creating subsets of related groups (e.g. by functions get_children or get_parents). Levels in combination to parent-child relationships will be further used for checking consistency of taxonomic lists.

A replacement method of the form 'levels(x) <- value' it is also implemented.

Value

A 'character' vector or a taxlist object with added or modified taxonomic levels.

Author(s)

Miguel Alvarez, [email protected].

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(taxlist)
data(Easplist)
summary(Easplist)

## Get levels of species list
levels(Easplist)

## Add aggregate as new taxonomic level
levels(Easplist) <- c("form","variety","subspecies","species","complex",
	"aggregate","genus","family")
summary(Easplist)

taxlist documentation built on July 2, 2018, 1:03 a.m.