match_arg

0th

Percentile

Argument Matching

See strex::match_arg().

Usage
match_arg(arg, choices, index = FALSE, several_ok = FALSE,
  ignore_case = FALSE)
Arguments
arg

A character vector (of length one unless several_ok = TRUE).

choices

A character vector of candidate values.

index

Return the index of the match rather than the match itself? Default no.

several_ok

Allow arg to have length greater than one to match several arguments at once? Default no.

ignore_case

Ignore case while matching. Default no. If this is TRUE, the returned value is the matched element of choices (with its original casing).

Aliases
  • match_arg
Documentation reproduced from package filesstrings, version 3.0.0, License: GPL-3

Community examples

Looks like there are no examples yet.