Convert a value from an ordinal scale in one range to a value in a new range (0–>5, 1–>10)

convert_scale(x, oldmin, oldmax, newmin, newmax)

Arguments

x

the original value

oldmin

the old range minimum

oldmax

the old range maximum

newmin

the new range minimum

newmax

the new range maximum

Value

the value in the new range