View source: R/core_flex_prms.R
flex_cust_prm | R Documentation |
This function takes a flex_prms_obj and adds or builds the entry cust_prms
to allow for custom parameters. An examplary instruction is
"peak_l = (a-1)*tau"
flex_cust_prm(flex_prms_obj, formula_instr)
flex_prms_obj |
a flex_prms object |
formula_instr |
a string referring to "custom parameter combination" (see modify_flex_prms) |
The entry cust_prms
is a list with entries expressions
and values
.
Each of these is again a named list, that either contains the expression
with instructions on how to calculate the custom parameter (e.g., "peak_l")
or the respective values. Values are getting updated/calculated in
update_special_values()
The cust_prms
exists of two entries "expressions" and values".
"expressions" contains a named list, with expressions referring to
prms_matrix
(see flex_prms) on how to calculate the custom
parameter (across all conditions). The "values" contain a named list,
with named numeric vectors (names are conditions, values the calculated
custom parameter values)
a modified flex_prms object with respect to the cust_prms
entry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.