This is a convenience wrapper around the
It is intended to speed subsetting complex experimental objects with one
function call. In the case of
subset_taxa, the subsetting will be
based on an expression related to the columns and values within the
taxonomyTable component) slot of
OTUs retained in the dataset is equivalent to
x[subset & !is.na(subset)], where
x is the vector of OTU IDs
subset is the logical that results from your subsetting expression.
This is important to keep in mind, as users are often unaware that this
subsetting step also removes/omits OTUs that have a missing value result,
somewhere in the expression.
The subsetting expression that should be applied to the
A subsetted object with the same class as
## ex3 <- subset_taxa(GlobalPatterns, Phylum=="Bacteroidetes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.