dkaschek / dMod

Dynamic modeling and parameter estimation in R
19 stars 8 forks source link

c.datalist #42

Open dlill opened 5 years ago

dlill commented 5 years ago

A good alias for +.datalist would be c.datalist which could also take more than two arguments. Will do this soon myself, I'm just abusing github issues as to do list, sorry for the spam

dkaschek commented 5 years ago

When I decided for +.datalist it was not an easy decision. I thought about c.datalist, too. However, because we are doing the same with data that we do with prediction or parameter transformation functions, i.e. adding new conditions, I chose +.datalist.

More than two arguments? Do you mean a+b+c where you would write c(a, b, c)?

I sometimes use Reduce("+", list_of_datalists).