x
that are lower than
bounds[1]
by bounds[1]
, and replaces any values higher
than bounds[2]
by bounds[2]
.
squeeze(x, bounds = c(min(x[r]), max(x[r])), r = rep(TRUE, length(x)))
x
.length(x)
that is used to select a
subset in x
before calculating automatic bounds.length(x)
.