merge_taxa2 | R Documentation |
Merge taxonomic groups into a single group.
merge_taxa2(x, taxa = NULL, pattern = NULL, name = "Merged")
x |
|
taxa |
A vector of taxa names to merge. |
pattern |
Taxa that match this pattern will be merged. |
name |
Name of the merged group. |
In some cases it is necessary to place certain OTUs or other groups into an "other" category. For instance, unclassified groups. This wrapper makes this easy. This function differs from phyloseq::merge_taxa by the last two arguments. Here, in merge_taxa2 the user can specify the name of the new merged group. And the merging can be done based on common pattern in the name.
Modified phyloseq object
Contact: Leo Lahti microbiome-admin@googlegroups.com
See citation('microbiome')
data(dietswap)
s <- merge_taxa(dietswap, c())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.