Learn R Programming

mlexperiments (version 0.0.5)

handle_cat_vars: handle_cat_vars

Description

Helper function to handle categorical variables

Usage

handle_cat_vars(kwargs)

Value

Returns a list with two elements:

  • params The keyword arguments without cat_vars.

  • cat_vars The vector cat_vars.

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().

See Also

kdry::dtr_matrix2df()

Examples

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

Run the code above in your browser using DataLab