Do these character vectors match exactly?
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") )
Character vector of user input.
Character vector of expected/allowed values.
If any value in
usercould not be matched, or repeated matches occured, what should happen? Possible values are
Attributes are ignored.