scale_preds: Scale Predictors

Description Usage Arguments Details Value

View source: R/scale_preds.R

Description

Scales the predictors in the training or test data set

Usage

1

Arguments

dt

a data.table (e.g., train or test)

Details

subtracts mean then divides by standard deviation

Value

Returns a list of length 3: the data.table with scaled predictors, a vector of the means in dt, a vector of the standard deviations in dt


rBatt/facebook5 documentation built on May 26, 2019, 7:44 p.m.