Description Usage Arguments Value Examples
The out-of-bounds functions in the scales package only work with continuous ranges. This oob function works on discrete values.
1 | censor_discrete(x, range)
|
x |
A vector of values. |
range |
A character vector of values that should be kept. |
x
with values not in range
as NA
.
1 | censor_discrete(c("a", "b", "c"), range = c("a", "b"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.