View source: R/create_interactions.R
Function that creates an interaction term from a recipe
1 | make_interaction(df, recipe, nlvl, ...)
|
df |
A data.frame that contains the interaction terms to be prepared |
recipe |
A character string containing interaction terms delimited by | e.g. "age|sex". |
nlvl |
Max number of levels allowed in an interaction term before its binned |
... |
Additional arguments to be passed to the prepare interaction function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.