Re: [R] How to change parameter values as a function to time with the package "deSolve"

2017-03-24 Thread Marine Regis
) Thanks in advance for your help! Marine De : David Winsemius Envoyé : vendredi 24 mars 2017 06:01 À : Marine Regis Cc : r-help@r-project.org Objet : Re: [R] How to change parameter values as a function to time with the package "deSolve" > O

Re: [R] How to change parameter values as a function to time with the package "deSolve"

2017-03-23 Thread David Winsemius
> On Mar 23, 2017, at 2:59 PM, Marine Regis wrote: > > Hello, > > I am trying to solve an ODE in R using deSolve. With the following code, I > expected the parameter �gamma0� takes the values 5 at time step 0, 1, 2, 3, > 4, 5, 6, 7, 8, 9 and 10, and 0 otherwise. However, the print(gamma0) sho

[R] How to change parameter values as a function to time with the package "deSolve"

2017-03-23 Thread Marine Regis
Hello, I am trying to solve an ODE in R using deSolve. With the following code, I expected the parameter �gamma0� takes the values 5 at time step 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10, and 0 otherwise. However, the print(gamma0) shows that �gamma0� stays at 0. Here is my ODE: param <- c(a = 0.1