Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nsamples-methods

Get the number of samples.


Description

Get the number of samples.

Usage

nsamples(physeq)

## S4 method for signature 'ANY'
nsamples(physeq)

## S4 method for signature 'phyloseq'
nsamples(physeq)

## S4 method for signature 'otu_table'
nsamples(physeq)

## S4 method for signature 'sample_data'
nsamples(physeq)

Arguments

Value

An integer indicating the total number of samples.

See Also

Examples

#
data("esophagus")
tree <- phy_tree(esophagus)
OTU1 <- otu_table(esophagus)
nsamples(OTU1)
physeq1 <- phyloseq(OTU1, tree)
nsamples(physeq1)

phyloseq

Handling and analysis of high-throughput microbiome census data

v1.34.0
AGPL-3
Authors
Paul J. McMurdie <joey711@gmail.com>, Susan Holmes <susan@stat.stanford.edu>, with contributions from Gregory Jordan and Scott Chamberlain
Initial release
2019-04-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.