powered by
squish(x, range = c(0, 1), only.finite = TRUE)
TRUE
squish(c(-1, 0.5, 1, 2, NA)) squish(c(-1, 0, 0.5, 1, 2))
Run the code above in your browser using DataLab