phyloseq2df: phyloseq data object conversion to data.frame

Description Usage Arguments Value Examples

View source: R/Util.R

Description

Conducts conversion of 1 of the data objects in a phyloseq object (eg., tax_table) to a dataframe

Usage

1
phyloseq2df(physeq, table_func)

Arguments

physeq

Phyloseq object

table_func

See Phyloseq::phyloseq-class for options

Value

data.frame

Examples

1
2
3
4
5
6
data(physeq_S2D1)
df_otu = phyloseq2df(physeq_S2D1, table_func=phyloseq::otu_table)
head(df_otu)

df_sample = phyloseq2df(physeq_S2D1, table_func=phyloseq::sample_data)
head(df_sample)

nick-youngblut/HTSSIP documentation built on May 23, 2019, 4:46 p.m.