Learn R Programming

daltoolbox (version 1.3.717)

feature_generation: Feature generation

Description

Create new features from existing columns using named expressions.

Usage

feature_generation(...)

Value

returns an object of class feature_generation

Arguments

...

named expressions that compute new features

Examples

Run this code
data(iris)
gen <- feature_generation(
 Sepal.Area = Sepal.Length * Sepal.Width,
 Petal.Area = Petal.Length * Petal.Width,
 Sepal.Ratio = Sepal.Length / Sepal.Width
)
iris_feat <- transform(gen, iris)
head(iris_feat)

Run the code above in your browser using DataLab