mlr-org / mlr3pipelines

Dataflow Programming for Machine Learning in R
https://mlr3pipelines.mlr-org.com/
GNU Lesser General Public License v3.0
137 stars 25 forks source link

pack_formula() #518

Open sumny opened 3 years ago

sumny commented 3 years ago

provide a helper that strips an environment of a formula of all variables that are not referred to by the formula. useful for i.e., PipeOpMutate and #410

mb706 commented 3 years ago

This is a good idea. One thing in particular I was worried about was things where the user constructs a formula where he refers to a certain variable, and then changes the variable value before executing the pipeop. A few pointers:

  1. What do you think of the design?
  2. Should I write this or do you feel up to the task?