powered by
scale0
scaler
scale0(x) scaler(x, r = c(0, 1), b = range(x, na.rm = TRUE))
x
# scale0(0:10) scale0(-1:3) scale0(2:3) scaler(0:10) scaler(0:10, 1:2) scaler(0:10, 1:2, c(0, 20)) #
Run the code above in your browser using DataLab