concatenate_n_vars | R Documentation |
Concatenate 'N' variables using the char pipe: <|>. This function is used when there is the need of measuring the mutual information and/or the information gain between 'N' input variables an against a target variable. This function makes sense when it is used based on categorical data.
concatenate_n_vars(data, vars)
data |
data frame containing the two variables to concatenate |
vars |
character vector containing all variables to concatenate |
vector containing the concatenated values for the given variables
new_variable=concatenate_n_vars(mtcars, c("cyl", "disp"))
# Checking new variable
head(new_variable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.