scale_vars: Transform numeric columns

Description Usage Arguments Value

Description

Any numeric columns are scaled and centred to have a mean of 0 and a standard deviation of 1. Optionally, also normalise the values to the range 0, 1.

Usage

1
scale_vars(df, normalise = FALSE)

Arguments

df

A 'data.frame' to be transformed.

normalise

If TRUE, after scaling and centering the values are normalised to the range 0, 1.

Value

A transformed data.frame.


lewinfox/fast-ai-structured documentation built on May 23, 2019, 5:03 a.m.