taxlist (version 0.1.7)

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, name)

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

Arguments

x

Object of class '>taxlist.

name

A name to access.

i,j

Indices for access.

drop

A logical value passed to Extract.

Value

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

Details

While the method '$' automatically recognizes the slot queried, provided that there is no shared column names.

In the method '[', the first index is referred to the rows in slot 'taxonRelations', while the second index indicate the columns in slot 'taxonTraits'.

A replacement method '$<-' is also implemented.

See Also

'>taxlist, subset.

Examples

Run this code
# NOT RUN {
library(taxlist)
data(Easplist)

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

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

Run the code above in your browser using DataLab