Learn R Programming

HTSSIP (version 1.4.1)

phyloseq2df: phyloseq data object conversion to data.frame

Description

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

Usage

phyloseq2df(physeq, table_func)

Arguments

physeq

Phyloseq object

table_func

See Phyloseq::phyloseq-class for options

Value

data.frame

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab