Skip to contents

Check and validate argument f

Usage

validate_arg_f(f = NULL, f_name = NULL, function_name = NULL)

Arguments

f

(optional: function name) Unquoted function name without parenthesis (see f_functions). By default calls to f_auto(), which selects a suitable function depending on the nature of the response and predictors. Set to NULL if responses = NULL. If NULL, predictors are ranked from lower to higher multicollinearity. Default: f_auto

f_name

(optional, string) Name of the function f, as returned by deparse(substitute(f)). Default: NULL

function_name

(optional, character string) Name of the function performing the argument check. Default: NULL

Value

function

Examples

x <- validate_arg_f(f = f_auto)