powered by
bootstrap(df, m)
https://github.com/hadley/dplyr/issues/269
Some examples can be found at
https://github.com/dgrtwo/broom/blob/master/vignettes/bootstrapping.Rmd
library(dplyr) mtcars %>% bootstrap(10) %>% do(tidy(lm(mpg ~ wt, .)))
Run the code above in your browser using DataLab