Description Usage Arguments Value Author(s) Examples
View source: R/computeInteractions.R
Computes feature interactions for numerical and integer features. Feature interactions include x1 + x2, x1 - x2, x1 * x2, x1 / x2
1 | computeInteractions(x, numFeats, autoCode = TRUE, progress = FALSE)
|
x |
[data.frame | Required] Data.frame containing numeric features to transform |
numFeats |
[character vector | Required] Character vector of numerical features |
autoCode |
[logical | Optional] Should code be generated when running the function |
progress |
[logical | Optional] Should a progress bar display the progress when running the function |
List containing data.frame with interacted features as well as code when autoCode is TRUE
Xander Horn
1 | int <- computeInteractions(x = iris, numFeats = names(iris)[1:4])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.