This is a convenience wrapper around the
It is intended to allow subsetting complex experimental objects with one
Subsetting is based on an expression for which the context first includes
the variables contained in
samples retained in the dataset is equivalent to
x[subset & !is.na(subset)], where
x is the vector of sample 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 samples that have a missing value,
somewhere in the expression.
The subsetting expression that should be applied to the
A subsetted object with the same class as
# data(GlobalPatterns) # subset_samples(GlobalPatterns, SampleType=="Ocean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.