relocate-phyloseq | R Documentation |
These functions are wrappers around dplyr::relocate()
that provide
convenient ways to modify tax_table(x)
and sample_data(x)
.
relocate_tax_table(x, ...)
## S4 method for signature 'taxonomyTable'
relocate_tax_table(x, ...)
## S4 method for signature 'phyloseq'
relocate_tax_table(x, ...)
relocate_sample_data(x, ...)
## S4 method for signature 'sample_data'
relocate_sample_data(x, ...)
## S4 method for signature 'phyloseq'
relocate_sample_data(x, ...)
x |
A |
... |
Expressions and arguments passed to |
The special column names '.otu' and '.sample' should not be used; see
mutate-phyloseq
for the ability to change taxa and sample names using
these names.
data(GlobalPatterns)
GlobalPatterns %>% sample_variables
ps <- GlobalPatterns %>%
relocate_sample_data(SampleType, .after = X.SampleID)
ps %>% sample_variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.