write_config: Save a 'config' object as files

Description Usage Arguments Value Examples

View source: R/config.R

Description

Write a config object as a YAML file, and write all dataframe components (transitions, parameters, predictors) as csv files. All paths must be explicitly specified as arguments. This function will not allow overwriting files.

Usage

1
2
3
4
5
6
7
write_config(
  cfg,
  config_path,
  transitions_path,
  parameters_path,
  predictors_path
)

Arguments

cfg

A config object

config_path

Path to the output YAML config file

transitions_path

Path to output transitions csv

parameters_path

Path to output parameters csv

predictors_path

Path to output predictors csv

Value

None, writes config components to disk

Examples

1
2
3
4
5
## Not run: 
write_config(config_ex_1, 'cfg.yml', 'trans.csv', 'params.csv',
             'predictors.csv')

## End(Not run)

IxPopDyMod documentation built on Feb. 8, 2022, 9:07 a.m.