Skip to contents

This function standardizes (scales) all numeric variables (except binary variables) in a data.frame. This is done "in place" (no variables are added).

Usage

standardize(df)

Arguments

df

data.frame

Value

df with all numeric variables (except binary) scaled

Examples

dfz <- df |> standardize()
#> [1] "Scaling all numeric vars (except binary)"