[R] Using apply() with a function involving ode()

2012-04-25 Thread Adam Zeilinger
Hello, I am trying to get the output from the numerical simulation of a system of ordinary differential equations for a range of values for three parameters. I am using the ode() function (deSolve package) to run the numerical simulation and apply() to run the simulation function for each

Re: [R] Using apply() with a function involving ode()

2012-04-25 Thread Berend Hasselman
See inline comments. On 25-04-2012, at 08:40, Adam Zeilinger wrote: Hello, I am trying to get the output from the numerical simulation of a system of ordinary differential equations for a range of values for three parameters. I am using the ode() function (deSolve package) to run the

Re: [R] Using apply() with a function involving ode()

2012-04-25 Thread Adam Zeilinger
Dear Berend, Yes, the wnv.sim function should have included wnv.model instead of wnv.incubation. Sorry for the typo. Although I had inspected the expand.grid() object, I had not connected the error with a naming problem. Thanks so much for the help! The function works perfectly.