orient_taxa | R Documentation |
Puts the phyloseq or otu-table object x
in the orientation (taxa as rows
or as columns) specified by as
. This is useful when passing the otu table
on to functions that require the abundance matrix to have a specific
orientation and are unaware of the taxa_are_rows(x)
property.
orient_taxa(x, as)
## S4 method for signature 'otu_table'
orient_taxa(x, as)
## S4 method for signature 'phyloseq'
orient_taxa(x, as)
x |
A phyloseq or otu-table object |
as |
The matrix dimension that is desired for taxa. Must be "rows" for rows and "columns" or "cols" for columns. |
data(soilrep)
taxa_are_rows(soilrep)
x <- soilrep %>% orient_taxa(as = "columns")
taxa_are_rows(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.