scale: Scaling and Centering of "matter" Matrices

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

Description

An implementation of scale for matter_mat matrices.

Usage

1
2
## 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

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

scale(x)

matter documentation built on Nov. 8, 2020, 6:15 p.m.