| squish | R Documentation |
Squish into a range
squish(x, a, b, in_place = FALSE)
x |
A numeric vector. |
a, b |
Upper and lower bounds |
in_place |
(logical, default: |
A numeric/integer vector with the values of x "squished" between a
and b; values above b
replaced with b and values below a replaced with a.
squish(-5:5,-1L, 1L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.