Tidy Evaluation and Formulae



Was attending @lionel’s talk on Tidy Evaluation this week and asked a question about using tidy eval for substituting columns in lm(). I did some searching and apparently this sort of thing might be coming as mentioned by Lionel here:

The use case is if I want to map() over a list of names and substitute these names as part of the formula in the lm() call.

Such a thing is mentioned in this closed pull request:

I’m curious about programming with formula using Tidy Evaluation and wondering when/if these functions will make it into purrr in the near future. Also very open to thinking about this differently if it means not needing this entirely.


We are currently thinking about how to interface the base modelling functions with tidy eval tools. Stay tuned!