This function follows the censor
function,
but allows extensions that work with objects other than numeric vectors.
censorThis(x, range = NULL, only.finite = TRUE, aes = "z") # S4 method for WoodenHorse,ANY censorThis(x, range = c(0, 1), only.finite = TRUE, aes = "z") # S4 method for numeric,numeric_OR_missing censorThis(x, range = c(0, 1), only.finite = TRUE, aes = "z")
x | A vector of values to manipulate. |
---|---|
range | A range representing object. |
only.finite | If |
aes | An aesthetic for which to evaluate the function. |
The x
argument, but with an indication which values should be
censored.
#> [1] NA 0.5 1.0 NA NA