This out-of-bounds function returns its input unchanged,
and is arguably the opposite of scales::discard()
. Other useful
out-of-bounds functions include scales::censor()
, scales::squish()
,
scales::squish_infinite()
, and scales::discard()
.
oob_keep(x, ...)
x | A vector of values. |
---|---|
... | Used to accept any other parameters. |
x
unchanged.
oob_keep(1:5)#> [1] 1 2 3 4 5