Parse a data.frame
containing specifications for
multiple models into a list of inputs required for each
model.
parse_multi_spec(multi_spec, split_on = ".model", group_vars)
A list of data frames, one for each value of
split_on.
data frame
.
character
of length 1, with the
name of the variable in multi_spec
to be split
on.
character
, one or more variable
names from multi_spec
that identify a line of
information.
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...