otu.matrix: otu_table to matrix

View source: R/otu_matrix.R

otu.matrixR Documentation

otu_table to matrix

Description

Extract otu_table from a phyloseq object and turn it into a matrix

Usage

otu.matrix(ps, force.taxa.cols = TRUE)

Arguments

ps

a phyloseq object

See Also

as, phyloseq, otu_table

Examples

data(example_phyloseq)
otu.mat <- otu.matrix(example_phyloseq)
View(otu.mat)

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