| matchArg {checkmate} | R Documentation |
This is an extensions to match.arg with support for AssertCollection.
The behavior is very similar to match.arg, except that NULL is not
a valid value for x.
matchArg(x, choices, several.ok = FALSE, .var.name = vname(x), add = NULL)
x |
[character] |
choices |
[character()] |
several.ok |
[logical(1)] |
.var.name |
[ |
add |
[ |
Subset of choices.
matchArg("k", choices = c("kendall", "pearson"))