Extract: Extract or Replace Parts of taxlist Objects

ExtractR Documentation

Extract or Replace Parts of taxlist Objects

Description

Quick access to slots taxonTraits and taxonRelations within taxlist objects.

Usage

## S4 method for signature 'taxlist'
x[i, j, drop = FALSE]

## S4 method for signature 'taxlist'
x$name

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'.

Value

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

Author(s)

Miguel Alvarez kamapu78@gmail.com.

See Also

taxlist subset

Examples

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

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

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