View source: R/schema_helpers.R
| schema_assert_levels | R Documentation |
For binary/categorical/ordinal variables, stops if any provided levels are not declared in the schema.
schema_assert_levels(schema, var, levels)
schema |
A validated schema (or a raw schema that can be validated). |
var |
A single variable name. |
levels |
Character vector of levels to check. |
Invisibly returns TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.