Excludes the list of taxa from the reconstructions.

excludeTaxa(x, taxa, climate)

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 exclude.

climate

A vector of climate variables to unlink the taxa with.

Value

Return the updated crestObj.

Examples

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 <- excludeTaxa(reconstr, 'Taxon3', 'bio1')
## 'Taxon3' is now excluded from the reconstruction of 'bio1'.
print(reconstr$inputs$selectedTaxa)
#>        bio1 bio12
#> Taxon1    1     1
#> Taxon2    1     0
#> Taxon3    0     0
#> Taxon4    0     1
#> Taxon5    0     1
#> Taxon6    0     0
#> Taxon7   -1    -1