taxlist (version 0.2.4)

Extract: Extract or Replace Parts of taxlist Objects

Description

Quick access to slots taxonTraits and taxonRelations within taxlist objects.

Usage

# S4 method for taxlist
[(x, i, j, drop = FALSE)

# S4 method for taxlist $(x, name)

Value

The method $ retrieves a vector, while [ retrieves a subset of the input taxlist object.

Arguments

x

Object of class taxlist.

i

Integer or logical vector used as index for access to taxon concepts, referring to the rows in slot 'taxonRelations'. These indices can be used to produce a object with a subset of taxon concepts. It is not recommended to use character values for this index.

j

Integer, logical or character vector used as index for access to variables in slot 'taxonTraits'. These indices can be used to reduce the number of variables in the mentioned slot.

drop

A logical value passed to Extract.

name

A symbol or character value for the method $, corresponding to a variable either at slot 'taxonTraits' or slot 'taxonRelations'.

Author

Miguel Alvarez kamapu78@gmail.com.

See Also

taxlist subset

Examples

Run this code
## Statistics on life forms
summary(as.factor(Easplist$life_form))

## First concepts in this list
summary(Easplist[1:5, ], "all")

Run the code above in your browser using DataLab