
Adds the most dominant taxa in the sample to the sample table
Source:R/adders_samples.R
add_dominant_taxa.Rd
add_dominant_taxa()
adds the most dominant taxa in the sample
above a given relative abundance to the sample table.
Samples that do not have a dominant taxon will have NA in the dominant_taxon column.
Value
A tidytacos object with the dominant taxa added to the sample table and the Berger-Parker index of the most dominant taxon. If the B-P index is lower than the threshold NA is returned.
See also
Other sample-modifiers:
add_alpha()
,
add_alphas()
,
add_metadata()
,
add_ord()
,
add_sample_clustered()
,
add_spike_ratio()
,
add_subsampled_alpha()
,
add_total_absolute_abundance()
,
add_total_count()
,
add_total_density()
,
cluster_samples()