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

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.