WillemSleegers / tidystats-v0.3

R package to produce a tidy output file of statistical models.
Other
22 stars 2 forks source link

Switch the results and model arguments #41

Closed WillemSleegers closed 7 years ago

WillemSleegers commented 7 years ago

I was thinking we might want to flip the order between the results and model arguments in add_stats() because that would make it fit better in the tidyverse.

Results could then be piped into the function, for example:

results <- lm(extra ~ group, data = sleep %>%
  summary() %>%
  add_stats(results, identifier = "lm_1") 
WillemSleegers commented 7 years ago

Implemented it; let me know what you think of it!