Standardizes (centers and scales) continuous variable in a dataset, leaving discrete variables untouched.
scaleContinuous(data, discrete, sdx = 1)
A data frame or matrix of variables to be scaled.
Either a logical vector which is TRUE
for discrete variables and FALSE
for continuous ones or a vector of column numbers of discrete variables.
The standard deviation of the columns for the continuous variables.
A data frame with the same dimensions as data
where the continuous variables are centered and scaled.