Description Usage Arguments Value Author(s) Examples
View source: R/apply_numeric_interactions.R
Creates interaction features off of numeric features by summing, dividing, multiplying and deducting. Interactions are created based off of a data.frame of combinations from function map.numeric.features.
1 2 | apply.numeric.interactions(data, numeric.combination.frame,
verbose = TRUE)
|
data |
[required | data.frame] A data.frame object on which the interactions should be applied to containing the base features used to create the combination of interaction features. |
numeric.combination.frame |
[required | data.frame] A data.frame object containing a combination of features used to created interactions from. |
verbose |
[optional | logical] Chatty or silent function output |
A data.frame object containing only interacted features
Xander Horn
1 2 | nim <- map.numeric.interactions(x=names(iris)[1:4])
nints <- apply.numeric.interactions(data = iris, numeric.combination.frame = nim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.