standardize_variable: Standardize variables in a data set.
Description
standardize_variable() standardizes the selected columns in a
data.frame using base::scale(). By default, this function
overwrites the column to be scaled. Use the suffix argument to avoid this
behavior.
standardize_variable() and standardise_variable() are synonyms.
A character suffix to be added to the scaled variables names.
When suffix is set toNULL, the standardize_variable() function will
overwrite the scaled variables. Defaults to NULL.
<code>standardize_variable</code> and <code>grouped_df</code>
Note that standardize_variable ignores grouping. Meaning that if you
call this function on a grouped data frame (see dplyr::grouped_df), the
overall variables' mean and standard deviation will be used for the
standardization.