View source: R/trans_feature_generation.R
| feature_generation | R Documentation |
Create new features from existing columns using named expressions.
feature_generation(...)
... |
named expressions that compute new features |
returns an object of class feature_generation
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.