Skip to contents

Thin pass-through that builds a tidymodels-style rset of bootstrap resamples via rsample::bootstraps and returns it untouched.

Usage

morie_rsample_bootstraps(data, times = 25L, ...)

Arguments

data

A data.frame.

times

Number of bootstrap resamples (default 25).

...

Forwarded to rsample::bootstraps (e.g. strata, apparent).

Value

An rset rsample object.

Examples

if (requireNamespace("rsample", quietly = TRUE)) {
  set.seed(1)
  rs <- morie_rsample_bootstraps(data.frame(x = rnorm(30)), times = 5L)
  class(rs)
}
#> [1] "bootstraps" "rset"       "tbl_df"     "tbl"        "data.frame"