taxon_traits: Manipulation of taxon traits in taxlist objects.

Description Usage Arguments Details Author(s) See Also Examples

Description

The slot 'taxonTraits' in taxlist objects contains attributes of taxon concepts (e.g. functional traits). These functions are suitable for replacing, retrieving and appending trait information in taxonomic lists.

Usage

1
2
3
4
5
6
7
## S4 method for signature 'taxlist'
taxon_traits(taxlist, ...)

taxon_traits(taxlist) <- value

## S4 method for signature 'taxlist,numeric'
update_trait(taxlist, ConceptID, ...)

Arguments

taxlist

A taxlist object.

ConceptID

A numeric vector with the respective taxon concept IDs.

value

Data frame to be set as slot 'taxonTraits'.

...

Further arguments to be passed among methods.

Details

Taxon traits are contained in a data frame at the slot 'taxonTraits' in taxlist objects. To optimise space, this data frame contain only entries for those concepts with information, while taxa with no information are skipped from this table. Thus appending new variables may also have to include new rows in this slot, which is automatically carried out by this function.

The replacement method 'taxon_traits<-' should be only used when constructing taxlist objects from an empty one.

Author(s)

Miguel Alvarez, [email protected].

See Also

taxlist.

Examples

1
2
3
4
5
6
7
library(taxlist)

data(Easplist)
summary(Easplist, units="Mb")

## Get the head of slot "taxonTraits"
head(taxon_traits(Easplist))

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