R/utils_normalize.R
max_scaling.Rd
Normalizes with max
max_scaling(x, na.rm = TRUE)
Input variable
If TRUE missing values are removed before calculation
If x is a numeric variable return x/max(x)
x <- data$Total_Power x_max <- max_scaling(x) head(x) #> [1] 184.8 162.4 186.8 164.8 179.6 175.2