R/convert.R
limitToRange.Rd
limit the values in x so that each value lies within the closed interval [left, right]
x
[left, right]
limitToRange(x, left = .Machine$double.eps, right = 1)
vector of numeric values
lower boundary
upper boundary
limitToRange(1:20, left = 5, right = 15) #> [1] 5 5 5 5 5 6 7 8 9 10 11 12 13 14 15 15 15 15 15 15