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)

HTSSIP documentation built on May 24, 2017, 1:02 a.m.

Search within the HTSSIP package
Search all R packages, documentation and source code