separateSampleColumn: Separate a Column in Phyloseq Sample Data

View source: R/separateSampleColumn.R

separateSampleColumnR Documentation

Separate a Column in Phyloseq Sample Data

Description

Separate a Column in Phyloseq Sample Data

Usage

separateSampleColumn(x, ...)

Arguments

x

phyloseq object

...

Option to pass on to separate.

Details

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.

Value

Phyloseq with modified sample_data

Author(s)

Sudarshan A. Shetty

References

Shetty SA (2020). Utilities for microbiome analytics. https://github.com/RIVM-IIV-Microbiome/biomeUtils

Examples

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="_")


RIVM-IIV-Microbiome/biomeUtils documentation built on July 20, 2023, 10:29 a.m.