reggie
reggie copied to clipboard
Reconsider Data / Formula order in call
I get the point of the experiment with argument order, but I'm not sure %>% pipelines will be the dominant use case. And if they are not, then it's probably not a good idea to mess with a strong convention that is maintained by most model-fitting R packages.
Plus, the benefit of breaking convention doesn't seem very high, given that one can just do this:
dat %>% lm(y ~ x, .)
Perhaps providing another function reg_(y ~ x, df)? I do like the current design though.