otu.data.table: otu_table to data.table

View source: R/otu_data_table.R

otu.data.tableR Documentation

otu_table to data.table

Description

Extract otu_table from a phyloseq object and turn it into a dat.table

Usage

otu.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, otu_table

Examples

data(example_phyloseq)
otu.DT <- otu.data.table(example_phyloseq)
otu.DT

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