View source: R/separateSampleColumn.R
separateSampleColumn | R Documentation |
Separate a Column in Phyloseq Sample Data
separateSampleColumn(x, ...)
x |
|
... |
Option to pass on to |
In some cases user may want to separate a sample column in
phyloseq
object. To ease this step, we make use of the
separate
. The separation can be done
with regular expression or numeric locations.
Phyloseq with modified sample_data
Sudarshan A. Shetty
Shetty SA (2020). Utilities for microbiome analytics. https://github.com/RIVM-IIV-Microbiome/biomeUtils
library(biomeUtils)
library(dplyr)
data(FuentesIliGutData)
FuentesIliGutData <- mutateSampleData(FuentesIliGutData,
column.to.split = paste0(sex,"_",age))
FuentesIliGutData <- separateSampleColumn(FuentesIliGutData,
column.to.split, c("A", "B"), sep="_")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.