Learn R Programming

dataquieR (version 2.0.1)

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)

Value

"cleaned" arg

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)