sample.data.table: sample_data to data.table

View source: R/sample_data_table.R

sample.data.tableR Documentation

sample_data to data.table

Description

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

Usage

sample.data.table(ps, sample.column.name = "Sample")

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

data.table, phyloseq, sample_data

Examples

data(example_phyloseq)
smpl.DT <- sample.data.table(example_phyloseq)
smpl.DT

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