matchArg | R Documentation |
matchArg
matches arg
against a table of candidates values as
specified by choices
, where NULL
means to take the first one.
matchArg(arg, choices)
arg |
a character vector of length one |
choices |
a character vector of candidate values |
In the one-argument form matchArg(arg)
, the choices are
obtained from a default setting for the formal argument arg
of
the function from which matchArg
was called. (Since default
argument matching will set arg
to choices
, this is allowed as
an exception to the "length one unless several.ok
is TRUE
"
rule, and returns the first element.)
The unabbreviated version of the exact match
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.