remove_taxa: Exclude Taxa

View source: R/remove_taxa.R

remove_taxaR 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)

microbiome/microbiome documentation built on Aug. 22, 2023, 7:12 a.m.