powered by
Changes range of numeric variables to have min=0 and max=1
normalize(x)
name of object to normalize
vector of same length as x with normalized values
The function changes the range of the named numeric vector to finally have min(x)=0 and max(x)=1.
# NOT RUN { normalize(1:5) # }
Run the code above in your browser using DataLab