merge_taxa2 {microbiome} | R Documentation

## Merge Taxa

### Description

Merge taxonomic groups into a single group.

### Usage

    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

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

[Package microbiome version 1.6.0 Index]