parse_multi_spec: Specify Inputs for Multiple Models From a Single File

View source: R/tabular_input.R

parse_multi_specR Documentation

Specify Inputs for Multiple Models From a Single File

Description

Parse a data.frame containing specifications for multiple models into a list of inputs required for each model.

Usage

parse_multi_spec(multi_spec, split_on = ".model", group_vars)

Arguments

multi_spec

⁠data frame⁠.

split_on

character of length 1, with the name of the variable in multi_spec to be split on.

group_vars

character, one or more variable names from multi_spec that identify a line of information.

Details

Each combination of values of the columns specified by group_vars should either be unique in the file (in which case it will be replicated for all values of split_on), or must be repeated as many times as unique values of split_on.

split_on is usually the model name.

group_var can be the state names, or from and to lines for a matrix definition...

Value

A list of data frames, one for each value of split_on.


heemod documentation built on May 29, 2024, 8:17 a.m.