util_match_arg: 'dataquieR' version of match.arg

View source: R/util_match_arg.R

util_match_argR Documentation

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)

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)

Value

"cleaned" arg


dataquieR documentation built on July 26, 2023, 6:10 p.m.