validate | R Documentation |
Value(s) validation using partial matching
validate(x, choices, name, several.ok = TRUE)
x |
The value(s) to validate |
choices |
A vector of candidate values |
name |
The name of the value being validated (used in error messages) |
several.ok |
(logical) Whether x can have more than one value. Default TRUE. |
## Not run:
validate(x = "bird", choices = c("dog", "cat"), name = "pet")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.