library(microbenchmark)
library(fabricatr)
library(rsample)
library(resample)
library(ggplot2)
df = diamonds
microbenchmark(
rsample = {
out = rsample::bootstraps(df, times = 20)
lapply(out$splits, function(x) { data.frame(x) })
},
us = {
replicate(20,
fabricatr::resample_data(df))
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.