powered by
Normalize the numeric variables in a data frame
normalize(data, new_min = 0, new_max = 1)
a data frame.
minimum for the transformed variables.
maximum for the transformed variables.
a data frame
normalize transforms all the numeric variables in a data frame to have the same minimum and maximum values. By default, this will be a minimum of 0 and maximum of 1. Character variables and factors are left unchanged.
normalize
# NOT RUN { head(cars74) cars74_st <- normalize(cars74) head(cars74_st) # }
Run the code above in your browser using DataLab