Convert numeric vector min to 0, max to maxvalue
normalize2(x, maxvalue = 10)
x
A vector
maxvalue
maximal value