sample.data.frame: sample_data to data.frame

View source: R/sample_data_frame.R

sample.data.frameR Documentation

sample_data to data.frame

Description

Extract sample_data from a phyloseq object and turn it into a data.frame

Usage

sample.data.frame(ps)

Arguments

ps

a phyloseq object

sample.column.name

the name of the column to keep sample names (because data.table doesn't use row names). Defaults to "Sample". Can set to FALSE to drop sample names.

See Also

as, phyloseq, sample_data

Examples

data(example_phyloseq)
smpl.DF <- sample.data.frame(example_phyloseq)
smpl.DF

kstagaman/phyloseqCompanion documentation built on Aug. 26, 2022, 5:07 a.m.