Argument Verification Using Partial Matching
Similar to match.arg()
, match_arg matches arg
against a table of candidate values as specified by choices
.
match_arg(arg, choices, several.ok = FALSE)
arg |
a character vector (of length one unless |
choices |
a character vector of candidate values |
several.ok |
logical specifying if |
This function resolves errors from match.arg()
with ” as arg input.
The matched elements of arg or in case of match failure a detailed error message
The contents of this section are shown in PDF user manual only.
## Not run: match_arg(arg = c(2, 1), choices = c(4, 3, 1, 2), several.ok = TRUE) match_arg(arg = c("c", "b"), choices = c("a", "b", "c", "d"), several.ok = TRUE) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.