powered by
Normalise a vector within 0 and 1
normalise_vec(vec, na.rm = TRUE)
the vector to normalise
TRUE if NA values should be discarded
the normalised vector
# NOT RUN { v <- c(-4,2,10,25,9,NA) normalise_vec(vec=v) # }
Run the code above in your browser using DataLab