integerMatrix {oligoClasses} | R Documentation

## 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.

### Author(s)

R. Scharpf

### Examples

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

[Package oligoClasses version 1.46.0 Index]