merge_treatments: Combine meta-data columns. Function from the...

View source: R/merge_treatments.R

merge_treatmentsR Documentation

Combine meta-data columns. Function from the phylosmith-package.

Description

Combines multiple columns of a phyloseq-class object sample_data into a single-variable column.

Usage

merge_treatments(phyloseq_obj, treatment)

Arguments

phyloseq_obj

A phyloseq-class object. It must contain sample_data()) with information about each sample.

treatment

A vector of any number of column names as strings or numerics in the sample_data that are to be combined.

Value

phyloseq-object

Examples

merge_treatments(soil_column, c("Matrix", "Treatment", "Day"))

schuyler-smith/phyloschuyler documentation built on Aug. 16, 2024, 5:36 a.m.