map_levels: Map Taxonomic Levels

Description Usage Arguments Value Author(s) References Examples

View source: R/map_levels.R

Description

Map taxa between hierarchy levels.

Usage

1
map_levels(taxa = NULL, from, to, data)

Arguments

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 phyloseq object or its taxonomyTable-class , see the phyloseq package.

Value

mappings

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
3
4
5
data(dietswap)
m <- map_levels('Akkermansia', from='Genus', to='Phylum',
tax_table(dietswap))
m <- map_levels('Verrucomicrobia', from='Phylum', to='Genus',
tax_table(dietswap))

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.