Extract: Extract or Replace Parts of taxlist Objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Quick access to slots 'taxonTraits' and 'taxonRelations' within taxlist objects.

Usage

1
2
3
4
5
## S4 method for signature 'taxlist'
x$name

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

Arguments

x

Object of class taxlist.

slot

To which slot will be applied the extraction or replacement.

...

Further arguments passed to or from other methods.

name

A name to access.

i,j

Indices for access.

drop

A logical value passed to Extract.

Details

While the method '$' automatically recognizes the slot queried, provided that there is no shared column names, in the method '[' you may specify it by the argument 'slot' (default for 'taxonRelations'). The argument 'slot' allows partial matchings.

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

The respective replacement methods '$<-' and '[<-' are also implemented.

Value

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

Author(s)

Miguel Alvarez, [email protected].

See Also

taxlist, subset.

Examples

1
2
3
4
5
6
7
8
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")

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