View source: R/schema_helpers.R
| schema_validator_levels | R Documentation |
Returns a predicate function that checks a scalar value against a set of allowed character levels and optional missingness.
schema_validator_levels(levels, allow_na = FALSE)
levels |
A character vector of allowed level labels. |
allow_na |
Logical scalar indicating whether missing values are permitted. |
A function of signature function(x) -> TRUE/FALSE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.