Coerce a list of parameters to a long.param.df
long.param.df
It is possible to set input parameters using a specifically formatted
data.frame
object. The first 3 columns of this data.frame
must
be:
param
: The name of the parameter. If this is a non-scalar parameter (a vector of length > 1), end the parameter name with the position on the vector (e.g.,"p_1"
,"p_2"
, ...).value
: the value for the parameter (or the value of the parameter in the Nth position if non-scalar).type
: a character string containing either"numeric"
,"logical"
, or"character"
to define the parameter object class.
In addition to these 3 columns, the data.frame
can contain any number
of other columns, such as details
or source
columns to document
parameter meta-data. However, these extra columns will not be used by
EpiModel.