is_valid | R Documentation |
Convenience wrapper around using a valid_*
function directly
is_valid(x, valid_fn, ...)
x |
[chacter or integer] A valid choice |
valid_fn |
[function] The actual validation function |
... |
Additional arguments passed to |
is_valid("yes", valid_yes_no) is_valid(c("yes", "no"), valid_yes_no) try(is_valid("YES", valid_yes_no)) is_valid(c("yes", "NO"), valid_yes_no)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.