Center or standardize variables around the mean. A new column will be created with the centered values.
center(x, variables = c(), standardize = FALSE, drop = FALSE, suffix = NULL)
dataframe
c() of columns to standardize
Logical. Do you want to calculate zscores? Default is FALSE
Drop original non-centered variables. Default is FALSE
Suffix to add at the end of the column names. Default is NULL and will add a _c for non-standardized and _z for standardized z-scores.