Learn R Programming

phyloseq (version 1.16.2)

intersect_taxa: Returns the intersection of species and samples for the components of x

Description

This function is used internally as part of the infrastructure to ensure that component data types in a phyloseq-object have exactly the same taxa/species. It relies heavily on the Reduce function to determine the strictly common species.

Usage

intersect_taxa(x)

Arguments

x
(Required). A phyloseq-class object that contains 2 or more components that in-turn describe species/taxa.

Value

  • Returns a character vector of only those species that are present in all species-describing components of x.

See Also

Reduce, intersect

Examples

Run this code
#
## data(GlobalPatterns)
## head(intersect_taxa(GlobalPatterns), 10)

Run the code above in your browser using DataLab