apply.numeric.interactions: Creates numeric interaction features

Description Usage Arguments Value Author(s) Examples

View source: R/apply_numeric_interactions.R

Description

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.

Usage

1
2
apply.numeric.interactions(data, numeric.combination.frame,
  verbose = TRUE)

Arguments

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

Value

A data.frame object containing only interacted features

Author(s)

Xander Horn

Examples

1
2
nim <- map.numeric.interactions(x=names(iris)[1:4])
nints <- apply.numeric.interactions(data = iris, numeric.combination.frame = nim)

XanderHorn/lazy documentation built on Jan. 16, 2021, 6:15 p.m.