Includes the list of taxa into the reconstructions.
includeTaxa(x, taxa, climate)
A crestObj
produced by one of the crest
,
crest.get_modern_data
, crest.calibrate
,
crest.reconstruct
or loo
functions.
A vector of taxa to include.
A vector of climate variables to link the taxa with.
Return the updated crestObj
.
data(reconstr)
print(reconstr$inputs$selectedTaxa)
#> bio1 bio12
#> Taxon1 1 1
#> Taxon2 1 0
#> Taxon3 1 0
#> Taxon4 0 1
#> Taxon5 0 1
#> Taxon6 0 0
#> Taxon7 -1 -1
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)
#> bio1 bio12
#> Taxon1 1 1
#> Taxon2 1 1
#> Taxon3 1 1
#> Taxon4 0 1
#> Taxon5 0 1
#> Taxon6 0 1
#> Taxon7 -1 -1