boot_to_csv: Save bootstrap datasets to disk

View source: R/boot.R

boot_to_csvR Documentation

Save bootstrap datasets to disk

Description

Used by make_boot_datasets(), run once per bootstrap sample

Usage

boot_to_csv(
  d,
  rsplit,
  data_name,
  data_folder = "DerivedData/bootstrap_datasets",
  id_var = "ID",
  oob = FALSE,
  overwrite = FALSE
)

Arguments

d

Dataset to merge.

rsplit

An object from rsample::bootstraps().

data_name

Name of dataset.

data_folder

Path to bootstrap datasets.

id_var

Character (default = "ID"). Name of ID column.

oob

Logical. Should out of bag dataset be written (default = FALSE).

overwrite

Should datasets be overwritten.

Value

path to csv file storing resampled ID for use by make_boot_datasets(). Normally the return object is not needed by users.

See Also

make_boot_datasets()


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.