Learn R Programming

spinifex (version 0.3.2)

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
# NOT RUN {
scale_sd(data = wine[, 2:6])
scale_01(data = wine[, 2:6])
# }

Run the code above in your browser using DataLab