powered by
squish_infinite(x, range = c(0, 1))
squish_infinite(c(-Inf, -1, 0, 1, 2, Inf))
Run the code above in your browser using DataLab