# NOT RUN {
# Scale the entries of a vector to the interval [0,1]
# NOT RUN {
# }
# NOT RUN {
# Generate data
v_data <- numeric(10)
v_data <- c(1, 5, 3, 2, 15, 12, 9, 11, 7, 13)
# Rescale data
v_rescaled_data <- numeric(10)
v_rescaled_data <- f_scale(v_data)
# print rescaled data
print(v_rescaled_data)
# }
# NOT RUN {
# }
# }
Run the code above in your browser using DataLab