Learn R Programming

oligo (version 1.36.1)

integerMatrix: Coerce numeric matrix (or array) to a matrix (array) of integers, retaining dimnames.

Description

Coerce numeric matrix to matrix of integers, retaining dimnames.

Usage

integerMatrix(x, scale = 100)
integerArray(x, scale=100)

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.

Examples

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

Run the code above in your browser using DataLab