loadScenarios: loadScenarios

loadScenariosR Documentation

loadScenarios

Description

This function loads scenarios saved with saveScenarios

Usage

loadScenarios(scenario_numbers, load_path = tempdir())

Arguments

scenario_numbers

A vector of integers naming the scenario to be loaded

load_path

A string for the directory where the scenarios are being stored, Default: tempfile

Value

Returns an object of class scenario_list

Author(s)

Stephan Wojciekowski

See Also

simulateScenarios saveScenarios tempfile

Examples

  scenarios_list <- simulateScenarios(
    n_subjects_list     = list(c(10, 20, 30)),
    response_rates_list = list(rep(0.9, 3)),
    n_trials            = 10)

  save_info      <- saveScenarios(scenarios_list)
  scenarios_list <- loadScenarios(scenario_numbers = save_info$scenario_numbers,
                                  load_path        = save_info$path)

bhmbasket documentation built on March 18, 2022, 7:46 p.m.