util_match_arg: dataquieR
version of match.arg
Description
does not support partial matching, but will display the most likely
match as a warning/error.
Usage
util_match_arg(arg, choices, several_ok = FALSE, error = TRUE)
Arguments
- arg
the argument
- choices
the choices
- several_ok
allow more than one entry in arg
- error
stop()
, if arg
is not in choices
(warns and cleans arg
, otherwise)