Learn R Programming

spinifex (version 0.3.8)

scale_sd: Preprocess numeric variables

Description

Centers and scales each column by standard deviation (sd) or to the interval (0, 1).

Usage

scale_sd(data)

scale_01(data)

Arguments

data

Numeric matrix or data.frame of the observations.

Examples

Run this code
scale_sd(data = wine[, 2:6])
scale_01(data = wine[, 2:6])

Run the code above in your browser using DataLab