scale_faster: Fast Centering and Scaling of Matrices

Description Usage Arguments Details Value

Description

Does the same thing as scale(x), but faster.

Usage

1

Arguments

x

A numeric matrix; is.matrix(x) should be TRUE.

Details

Uses colSds from the matrixStats package.

Value

A matrix in which the columns are centered to have zero mean, and they are also scaled to have standard deviation of 1.


liangyy/fasterscale documentation built on Jan. 23, 2020, 12:22 a.m.