Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

scaler

scaler


Description

A function to center (subtract mean) and/or scale (divide by standard deviation) data column-wise in a computationally efficient way.

Usage

scaler(x, center = TRUE, scale = TRUE)

Arguments

x

The input matrix.

center, scale

Logical; determine if the data should be centered and/or scaled.

Details

Unlike its R counterpart scale(), the arguments center and scale can only be logical values (and not vectors).

Value

The centered/scaled data, with attributes as in R's scale().


coop

Co-Operation: Fast Covariance, Correlation, and Cosine Similarity Operations

v0.6-2
BSD 2-clause License + file LICENSE
Authors
Drew Schmidt [aut, cre], Christian Heckendorf [ctb] (Caught some memory errors.)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.