sumDuplicatedParsInObjlist: Remove redundant outer names

View source: R/normIndiv.R

sumDuplicatedParsInObjlistR Documentation

Remove redundant outer names

Description

Remove redundancies (happens when a parameter is duplicated and mapped to the same outer parameter). For example in est.grid = data.table(ID = 1, init_A = "Atot", Atot= "Atot", ...)

Usage

sumDuplicatedParsInObjlist(ol)

Arguments

objlist

objlist with potentially duplicated names

Value

objlist with duplicated gradient and hessian elements summed and redundancies removed

Author(s)

Daniel Lill (daniel.lill@physik.uni-freiburg.de)

Examples

ol <- dMod:::init_empty_objlist(c("S2" = 2, "S3" = 3, S2 = 3))
ol$gradient <- ol$gradient + 1:3
ol$hessian <- ol$hessian + 1:9
sumDuplicatedParsInObjlist(ol)

dkaschek/dMod documentation built on April 23, 2024, 5:18 p.m.