pstoveg_sample: Converts sample_data slot of a phyloseq object to...

Description Usage Arguments Value See Also Examples

Description

physeq2veg_otu is a helper function intended to convert the species/taxa count slot of a phyloseq object to a vegan-friendly matrix.

Usage

1

Arguments

PS

(required) a phyloseq object

Value

A matrix containing a phyloseq object's otu_table slot.

See Also

phyloseq-class otu_table-class otu_table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
library(phyloseq)
data("GlobalPatterns")
# inspect otu_table()
dim(otu_table(GlobalPatterns))
str(otu_table(GlobalPatterns))
taxa_are_rows(GlobalPatterns)
gp.otu <- physeq2veg_otu(GlobalPatterns)
dim(gp.otu)
str(gp.otu)

## End(Not run)

EESI/theseus documentation built on May 24, 2019, 7:21 p.m.