integerMatrix: Coerce numeric matrix (or array) to a matrix (array) of...

Description Usage Arguments Value Author(s) Examples

View source: R/functions.R

Description

Coerce numeric matrix to matrix of integers, retaining dimnames.

Usage

1
2

Arguments

x

a matrix or array

scale

scalar (numeric). If not 1, x is multiplied by scale prior to coercing to a matrix of integers.

Value

A matrix or array of integers.

Author(s)

R. Scharpf

Examples

1
2
3
x <- matrix(rnorm(10), 5, 2)
rownames(x) = letters[1:5]
i <- integerMatrix(x, scale=100)

benilton/oligoClasses-release documentation built on May 11, 2017, 4:19 a.m.