[R-sig-dyn-mod] metapopulation model with random effect in parameters
Thomas Petzoldt
thom@@@petzoldt @ending from tu-dre@den@de
Wed Sep 26 14:06:53 CEST 2018
Hi,
Note that approxfun uses a special feature of R: It returns a function.
If you create:
b1<-approxfun(x=c(0,365),y=c(3,6),rule = 2)
then just use
b1(time)
in your model.
Please read the ?approxfun help page again. For examples how to use it
with deSolve, have a look at:
http://limno-live.hydro.tu-dresden.de/user2017/
and in particular:
http://limno-live.hydro.tu-dresden.de/user2017/2.1-forcing+events/desolve-forcing.html#(5)
Thomas
--
http://tu-dresden.de/Members/thomas.petzoldt
More information about the R-sig-dynamic-models
mailing list