View source: R/utils_handle_cat_vars.R
handle_cat_vars | R Documentation |
Helper function to handle categorical variables
handle_cat_vars(kwargs)
kwargs |
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()
.
Returns a list with two elements:
params
The keyword arguments without cat_vars
.
cat_vars
The vector cat_vars
.
kdry::dtr_matrix2df()
handle_cat_vars(list(cat_vars = c("a", "b", "c"), arg1 = 1, arg2 = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.