biomformat (version 1.0.2)

ncol,biom-method: Method extensions to ncol for biom-class objects.

Description

See the general documentation of ncol method for expected behavior.

Usage

"ncol"(x)

Arguments

x
(Required). An instance of the biom-class.

Value

The number of columns in x. A length 1 integer-class.

See Also

nrow

ncol

biom_shape

Examples

Run this code
# import with default parameters, specify a file
biom_file = system.file("extdata", "rich_sparse_otu_table.biom", package = "biomformat")
(x = read_biom(biom_file) )
ncol(x)

Run the code above in your browser using DataCamp Workspace