phyloseq2df: Convert a sub-object of a phyloseq object to a dataframe

View source: R/phyloseq.R

phyloseq2dfR Documentation

Convert a sub-object of a phyloseq object to a dataframe

Description

A helper function for converting OTU, taxonomy, and metadata to dataframes

Usage

phyloseq2df(physeq_obj, physeq_func, long = FALSE, flip = FALSE)

Arguments

physeq_obj

The phyloseq object

physeq_func

Which object do you want ('otu_table', 'tax_table', or 'sample_data')

long

Do you want the table in "long" format ("gathered")

flip

Flip (transpose) the table?

Value

A tibble


leylabmpi/LeyLabRMisc documentation built on Nov. 3, 2022, 3:45 p.m.