nsamples {rbiom}R Documentation

Number of samples in a BIOM.

Description

Number of samples in a BIOM.

Usage

nsamples(biom)

Arguments

biom

A BIOM object, as returned from read.biom.

Value

The number of samples present.

See Also

Other accessor functions: counts(), info(), metadata(), ntaxa(), phylogeny(), sample.names(), sequences(), taxa.names(), taxa.ranks(), taxonomy()

Examples

    library(rbiom)
    
    infile <- system.file("extdata", "hmp50.bz2", package = "rbiom")
    biom <- read.biom(infile)
    
    nsamples(biom)


[Package rbiom version 1.0.3 Index]