remove_taxa {microbiome} | R Documentation

## Exclude Taxa

### Description

Filter out selected taxa from a phyloseq object.

### Usage

    remove_taxa(taxa = NULL, x)

### Arguments

`taxa` | Names of taxa to be removed.
`x` | `phyloseq-class` object

### Details

This complements the phyloseq function prune_taxa by providing a way to exclude given groups from a phyloseq object.

### Value

Filtered phyloseq object.

### Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

### References

To cite the microbiome R package, see citation('microbiome')

### See Also

phyloseq::prune_taxa, phyloseq::subset_taxa

### Examples

    data(dietswap)
    pseq <- remove_taxa(c("Akkermansia", "Dialister"), dietswap)

[Package microbiome version 1.8.0 Index]