[,otu_table,ANY,ANY,ANY-method | R Documentation |
See the documentation for the Extract
generic,
defined in the R base-package
for the expected behavior.
## S4 method for signature 'otu_table,ANY,ANY,ANY' x[i, j, ..., drop = TRUE] ## S4 method for signature 'sample_data,ANY,ANY,ANY' x[i, j, ..., drop = TRUE] ## S4 method for signature 'taxonomyTable,ANY,ANY,ANY' x[i, j, ..., drop = TRUE] ## S4 method for signature 'XStringSet,character,ANY,ANY' x[i]
x |
object from which to extract element(s) or in which to replace element(s). |
i |
indices specifying elements to extract or replace. Indices are
For When indexing arrays by An index value of |
j |
See |
... |
See |
drop |
For matrices and arrays. If |
One special exception to standard behavior of these methods in phyloseq is that
the drop
argument is set internally to FALSE
.
This helps avoid bugs during complicated subsetting with multiple components,
where it is necessary to be able to use a two dimensional indexing even
if one of those dimensions has only 1 rank.
Put another way, these phyloseq-defined extractions never collapse their result
into a vector. See the documentation of Extract
for
more information about the drop
argument.
Extract
data(esophagus) nrow(otu_table(esophagus)) nrow(otu_table(esophagus)[1:5, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.