handle_cat_vars {mlexperiments}R 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:

See Also

kdry::dtr_matrix2df()

Examples

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


[Package mlexperiments version 0.0.4 Index]