Learn R Programming

crestr (version 1.2.1)

includeTaxa: Includes the list of taxa into the reconstructions.

Description

Includes the list of taxa into the reconstructions.

Usage

includeTaxa(x, taxa, climate)

Value

Return the updated crestObj.

Arguments

x

A crestObj produced by one of the crest, crest.get_modern_data, crest.calibrate, crest.reconstruct or loo functions.

taxa

A vector of taxa to include.

climate

A vector of climate variables to link the taxa with.

Examples

Run this code
data(reconstr)
print(reconstr$inputs$selectedTaxa)
reconstr <- includeTaxa(reconstr, reconstr$inputs$taxa.name, 'bio12')
## All the taxa are not selected for 'bio12', except for 'Taxon7' for which
## data are unavailable.
print(reconstr$inputs$selectedTaxa)

Run the code above in your browser using DataLab