Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Examples

#
## data(GlobalPatterns)
## head(intersect_taxa(GlobalPatterns), 10)

phyloseq

Handling and analysis of high-throughput microbiome census data

v1.34.0
AGPL-3
Authors
Paul J. McMurdie <joey711@gmail.com>, Susan Holmes <susan@stat.stanford.edu>, with contributions from Gregory Jordan and Scott Chamberlain
Initial release
2019-04-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.