Description Usage Arguments Value See Also
View source: R/leaf_interact.R
Description
1 | leaf_interact(tbl, ..., cols = NULL, sep = " x ", col_sep = NULL)
|
tbl |
A data frame |
... |
Two or more column names to interact, either unquoted names or a character vector |
cols |
A character vector of two or more column names |
sep |
A string indicating the separator to place between values in observations |
col_sep |
A string indicating the separator to place between column
names. If NULL, defaults to |
A modified tbl
with an interaction column added
leaf_interactions()
to create multiple interactions with one
function
leaf_interact_all()
to create interactions bewteen a column and all
other columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.