Description Usage Arguments Examples
For now the problem with naming new columns exists. It will be solving in the future. But the main functionality seems to work well. If you stuck with a bug please create a new issue here https://github.com/pavel-filatov/featr/issues.
1 | make_interactions(.df, .f, ...)
|
.df |
data frame |
.f |
function |
... |
variables to interact, symbols and tidyselect functions allowed |
1 2 3 4 5 6 7 | mtcars %>%
select(am, cyl, mpg) %>%
mutate(
!!!make_interactions(., "-", 1, 2),
!!!make_interactions(., "+", am, cyl),
!!!make_interactions(., "/", everything())
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.