handle_cat_vars: handle_cat_vars

View source: R/utils_handle_cat_vars.R

handle_cat_varsR Documentation

handle_cat_vars

Description

Helper function to handle categorical variables

Usage

handle_cat_vars(kwargs)

Arguments

kwargs

A list containing keyword arguments.

Details

This function is a utility function to separate the list element with the names of the categorical variables from the key word arguments list to be passed further on to kdry::dtr_matrix2df().

Value

Returns a list with two elements:

  • params The keyword arguments without cat_vars.

  • cat_vars The vector cat_vars.

See Also

kdry::dtr_matrix2df()

Examples

handle_cat_vars(list(cat_vars = c("a", "b", "c"), arg1 = 1, arg2 = 2))


mlexperiments documentation built on April 12, 2025, 1:40 a.m.