taxa.data.table: tax_table to data.table

View source: R/taxa_data_table.R

taxa.data.tableR Documentation

tax_table to data.table

Description

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

Usage

taxa.data.table(ps, taxon.column.name = "Taxon")

Arguments

ps

a phyloseq object

taxon.column.name

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

See Also

data.table, phyloseq, otu_table

Examples

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

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