validate_arg_f: Check and validate argument 'f'

View source: R/validate_arg_f.R

validate_arg_fR Documentation

Check and validate argument f

Description

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

See Also

Other argument_validation: drop_geometry_column(), validate_arg_df(), validate_arg_df_not_null(), validate_arg_encoding_method(), validate_arg_function_name(), validate_arg_max_cor(), validate_arg_max_vif(), validate_arg_predictors(), validate_arg_preference_order(), validate_arg_quiet(), validate_arg_responses()

Examples

x <- validate_arg_f(f = f_auto)

collinear documentation built on Dec. 8, 2025, 5:06 p.m.