powered by
Scale a vector to 0-1 by min and max
normalize(x, na.rm = TRUE)
numeric
bool whether to remove NA values.
a normalized vector
# NOT RUN { normalize(0:10) normalize(c(1, 100, NA, 10), na.rm = TRUE) # }
Run the code above in your browser using DataLab