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