validateValueDomain | R Documentation |
A helper function for validating data within a pre-defined set of possible values.
validateValueDomain(
values,
domain,
error_message = "The following values are invalid:\n\n%s\n\n"
)
values |
The data that is to be validated |
domain |
The set of valid values that "values" can take on. |
error_message |
A template of a printf message for invalid values. |
The values provided
If the values vector contains values that are not in the domain vector, then the method calls stop with an error message using the template provide in the "error_message" parameter.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.