tidyverse / dplyr

dplyr: A grammar of data manipulation
https://dplyr.tidyverse.org/
Other
4.71k stars 2.12k forks source link

Do should take multiple named arguments #204

Closed hadley closed 10 years ago

hadley commented 10 years ago

Maybe something like this? Need to thinking about whether it should automatically group its output.

bootstrap(mtcars, 100) %.%
  do(model = lm(mpg ~ cyl, data = .) %.%
  summarise(coef(model)) %.%
  summarise(colwise(mean))
hadley commented 10 years ago

See also "Extended Algebra and Calculus for Nested Relational Databases"

hadley commented 10 years ago

Done