Closed hadley closed 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))
See also "Extended Algebra and Calculus for Nested Relational Databases"
Done
Maybe something like this? Need to thinking about whether it should automatically group its output.