This function standardizes quantitative variables in a data frame while leaving the others untouched. This leaves not only factors, but also binary variables (those with values 0, 1, or NA).

scaleDataFrame(data)

Arguments

data

A data frame.

Value

A data frame with standardized quantitative variables