merge_taxa2: Merge Taxa

Description Usage Arguments Details Value Author(s) References Examples

View source: R/merge_taxa.R

Description

Merge taxonomic groups into a single group.

Usage

1
merge_taxa2(x, taxa = NULL, pattern = NULL, name = "Merged")

Arguments

x

phyloseq-class object

taxa

A vector of taxa names to merge.

pattern

Taxa that match this pattern will be merged.

name

Name of the merged group.

Details

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.

Value

Modified phyloseq object

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
    data(dietswap)
    s <- merge_taxa(dietswap, c())

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