petab_mutateDCO | R Documentation |
If j is supplied, the full dco is always returned and no subsetting is done!
petab_mutateDCO(pe, i, j)
pe |
|
i |
expression to subset the dco, can be missing |
j |
Must be a call of the form |
pe with modified DCO
Daniel Lill (daniel.lill@physik.uni-freiburg.de)
Other dco:
dco_expandPatterns()
,
petab_joinDCO()
,
petab_unjoinDCO()
# 1. supply i and j, mutate in rows defined by i. Important: Need to assign! pe <- petab_exampleRead("02") pe <- petab_mutateDCO(pe, replicateId == 2 & observableId == "obsE", `:=`(observableId = "obsE_special", observableFormula = "log(E)/log(7)")) pe # 2. supply i only. Subset to rows pe <- petab_exampleRead("02") pe <- petab_mutateDCO(pe, replicateId == 2 & observableId == "obsE") pe # 3. supply j only. Mutate all rows pe <- petab_exampleRead("02") pe <- petab_mutateDCO(pe, j = `:=`(observableId = "obsE_special", observableFormula = "log(E)/log(7)", observableName = "obsE_special", noiseFormula = "1")) pe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.