scale_faster: Fast Centering and Scaling of Matrices

Description Usage Arguments Details Value

View source: R/fasterscale.R

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 teh matrixStats pacakge.

Value

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


zouyuxin/fasterscale documentation built on Jan. 23, 2020, 12:26 a.m.