scale {matter} | R Documentation

## Scaling and Centering of “matter” Matrices

### Description

An implementation of `scale` for `matter_mat` matrices.

### Usage

    ## S4 method for signature 'matter_mat'
    scale(x, center = TRUE, scale = TRUE)

### Arguments

`x` | A `matter_mat` object.
`center` | Either a logical value or a numeric vector of length equal to the number of columns of 'x'.
`scale` | Either a logical value or a numeric vector of length equal to the number of columns of 'x'.

### Details

See `scale` for details.

### Value

A `matter_mat` object with the appropriate ‘scaled:center’ and ‘scaled:scale’ attributes set. No data in virtual memory is changed, but the scaling will be applied any time the data is read. This includes but is not limited to loading data elements via subsetting, summary statistics methods, and matrix multiplication.

### Author(s)

Kylie A. Bemis

### See Also

`scale`

### Examples

    x <- matter(1:100, nrow=10, ncol=10)

    scale(x)

[Package matter version 1.18.0 Index]