Learn R Programming

ggRandomForests (version 1.1.2)

rebuild_cache_datasets: Recreate the cached data sets for the ggRandomForests package

Description

Recreate the cached data sets for the ggRandomForests package

Usage

rebuild_cache_datasets(set = NA, save = TRUE, pth, ...)

Arguments

set
Defaults to all sets (NA), however for individual sets specify one or more of c("airq", "Boston", "iris", "mtcars", "pbc", "veteran")
save
Defaults to write files to the current data directory.
pth
the directory to store files.
...
extra arguments passed to randomForestSRC functions.

Details

Constructing random forests are computationally expensive, and the ggRandomForests operates directly on randomForestSRC objects. We cache computationally intensive randomForestSRC objects to improve the ggRandomForests examples, diagnostics and vignettes run times. The set of precompiled randomForestSRC objects are stored in the package data subfolder, however version changes in the dependant packages may break some functionality. This function was created to help the package developer deal with thoses changes. We make the function available to end users to create objects for further experimentation.

There are five cached data set types: '

  • rfsrc_data-randomForestSRC::rfsrcobjects.
  • varsel_data-randomForestSRC::var.selectminimal depth variable selection objects.
  • interaction_data-randomForestSRC::find.interactionminimal depth, pairwise variable interaction matrices.
  • partial_data-randomForestSRC::plot.variableobjects (partial=TRUE) for partial variable dependence.
  • partial_coplot_data-randomForestSRC::plot.variableobjects (partial=TRUE) for partial variable dependence.

For the following data sets: #'

  • _iris- Theirisdata set.
  • _airq- Theairqualitydata set.
  • _mtcars- Themtcarsdata set.
  • _Boston- TheBostonhousing data set (MASSpackage).
  • _pbc- Thepbcdata set (randomForestSRCpackage).
  • _veteran- Theveterandata set (randomForestSRCpackage).

See Also

iris airq mtcars MASS::Boston randomForestSRC::pbc randomForestSRC::veteran rfsrc_data varsel_data interaction_data partial_data partial_coplot_data