BIOMrename: Change row and column identifiers of BIOM data

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Change the dimnames (BIOM row and column ids) of an object of class biom.

Usage

1
2
## S3 replacement method for class 'biom'
dimnames(x) <- value

Arguments

x

an object (biom)

value

new row and column identifiers (list of character)

Details

Complete technical documentation is forthcoming. For the current preliminary release, please refer to the examples provided.

Value

The argument x with updated row and column ids (that is, dimnames).

Author(s)

Daniel T. Braithwaite

See Also

BIOM.utils::biom, BIOM.utils::dimnames.biom

Examples

1
2
3
4
5
6
####  even if not particularly useful, this is allowed
yy <- xx4
dimnames (yy) <- list (letters [1:nrow(yy)], LETTERS [1:ncol(yy)])

####  more useful: renaming columns by codes taken from metadata
colnames (yy) <- columns (yy, "sample.data.sample_name")

matR documentation built on May 2, 2019, 6:53 a.m.