mlr-org / mlrCPO

Composable Preprocessing Operators for MLR
Other
37 stars 4 forks source link

Use slice functions instead of affect.* parameters #38

Open mb706 opened 6 years ago

mb706 commented 6 years ago

Slice functions take the data as input and return the indices of affected columns as output. This enables user-defined slices and reduces cpo constructor parameter clutter. A simple constructor (affect(type = "numeric")) or possibly even a set of provided constants (affectNumerics) for the most useful cases should also be provided.