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, ...)

Arguments

x

A vector of values.

...

Used to accept any other parameters.

Value

x unchanged.

Examples

oob_keep(1:5)
#> [1] 1 2 3 4 5