Calculates how many species compose the response of each taxon.

getSpeciesdiversity(x)

Arguments

x

A crestObj generated by the crest.reconstruct, loo or crest functions.

Value

Return the number of composing species of each taxon.

Examples

data(reconstr)
getSpeciesdiversity(reconstr)
#> Taxon1 Taxon2 Taxon3 Taxon4 Taxon5 Taxon6 
#>      1      1      1      1      1      1