map_levels {microbiome} | R Documentation |
Map taxa between hierarchy levels.
map_levels(taxa = NULL, from, to, data)
taxa |
taxa to convert; if NULL then considering all taxa in the tax.table |
from |
convert from taxonomic level |
to |
convert to taxonomic level |
data |
Either a |
mappings
Contact: Leo Lahti microbiome-admin@googlegroups.com
See citation('microbiome')
data(dietswap) m <- map_levels('Akkermansia', from='Genus', to='Phylum', tax_table(dietswap)) m <- map_levels('Verrucomicrobia', from='Phylum', to='Genus', tax_table(dietswap))