Map a value in one range to a value in another
Examples
# Map values from the range 0-10 to the range 0-1
map_value(c(0, 1, 2, 3), 0, 10, 0, 1)
#> [1] 0.0 0.1 0.2 0.3
Map a value in one range to a value in another
# Map values from the range 0-10 to the range 0-1
map_value(c(0, 1, 2, 3), 0, 10, 0, 1)
#> [1] 0.0 0.1 0.2 0.3