dfscaling: Apply standard scaling and centering to the numeric features...

Description Usage Arguments Value Examples

View source: R/dfscaling.R

Description

Each of the numeric columns will have a mean of 0 and standard deviation of 1 after the transformation.

Usage

1
dfscaling(df, target)

Arguments

df

Data Frame

target

name of the target column

Value

scaled_df Data Frame

Examples

1
2
3
4
5
6
df <- tidyr::tibble(x = 1:5,
                      y = seq(2,10, by = 2),
                      z = x ^ 2 + y,
                      target = c(1,1,0,1,0))

dfscaling(df, target)

UBC-MDS/Rmleda documentation built on March 29, 2021, 7:04 a.m.