scale: Scale

Description Usage Arguments

Description

An efficient method of centering and/or scaling a matrix or vector. Like R's own scale(), this will cast dataframes as matrices first, which is potentially a very memory expensive operation.

Usage

1
scale2(x, center = TRUE, scale = TRUE)

Arguments

x

The input matrix, vector, or dataframe.

center

Logical; should the data be centered first? (yes!)

scale

Logical; should the data be scaled first? (probably!)


wrathematics/pcapack documentation built on May 4, 2019, 10:53 a.m.