View source: R/censor_values.R
censor_values | R Documentation |
Replaces values in a vector with NA
when above or below a censor level.
Censoring is values censor_symbol censor_threshold
are censored,
for example with the defaults (values lte 0 set to NA
) all values <= 0 are
replaced with NA
.
censor_values(
value,
censor_threshold = 0,
censor_symbol = c("lte", "lt", "gt", "gte")
)
value |
'numeric' vector. Values to censor. |
censor_threshold |
'numeric' value. Threshold to censor values on. Default is 0. |
censor_symbol |
'character' string. |
'numeric' vector with censored values replaced with NA
censor_values(value = seq.int(1, 10, 1), censor_threshold = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.