The bootstrap() function is deprecated and will be removed from
an upcoming release of broom. For tidy resampling, please use the rsample
package instead.
bootstrap(df, m, by_group = FALSE)
| df | a data frame |
|---|---|
| m | number of bootstrap replicates to perform |
| by_group | If |
This code originates from Hadley Wickham (with a few small corrections) here:
https://github.com/hadley/dplyr/issues/269