psmelt2: Convert 'phyloseq-class' object to long data format

View source: R/psmelt2.R

psmelt2R Documentation

Convert phyloseq-class object to long data format

Description

An alternative to psmelt function from phyloseq-class object.

Usage

psmelt2(x, sample.column = NULL, feature.column = NULL)

Arguments

x

phyloseq-class object

sample.column

A single character string specifying name of the column to hold sample names.

feature.column

A single character string specifying name of the column to hold OTU or ASV names.

Value

A tibble in long format

Author(s)

Contact: Sudarshan A. Shetty sudarshanshetty9@gmail.com

Examples

data("dietswap")
ps.melt <- psmelt2(dietswap, sample.column="SampleID", 
                   feature.column="Feature") 
head(ps.melt)                                         

microbiome/microbiome documentation built on Aug. 22, 2023, 7:12 a.m.