match_exactly | R Documentation |
Checks if a user-defined character vector matches an expected character
vector. That is, they share the same lengths and entries in the same order.
For vectors of the same lengths, the result is all(a == b)
.
match_exactly(
user,
expected,
fail_action = c("message", "warning", "stop", "nothing")
)
user |
Character vector of user input. |
expected |
Character vector of expected/allowed values. |
fail_action |
If any value in |
Attributes are ignored.
Logical. Do user
and expected
match?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.