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