powered by
Helper function to handle categorical variables
handle_cat_vars(kwargs)
Returns a list with two elements:
params The keyword arguments without cat_vars.
params
cat_vars
cat_vars The vector cat_vars.
A list containing keyword arguments.
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().
kdry::dtr_matrix2df()
handle_cat_vars(list(cat_vars = c("a", "b", "c"), arg1 = 1, arg2 = 2))
Run the code above in your browser using DataLab