R/adaptive_utils.R
ifelse_clip.Rd
Clips a numeric vector between two values.
ifelse_clip(lamb, x, y)
Numeric vector. Values to be clipped.
Numeric. Lower bound of the clip range.
Numeric. Upper bound of the clip range.
Numeric vector. Clipped values.
lamb <- c(1, 2, 3, 4, 5) ifelse_clip(lamb, 2, 4) #> [1] 2 2 3 4 4