[R] An extended Hodgkin-Huxley model that doesn't want to work.

Berend Hasselman bhh at xs4all.nl
Fri Feb 15 10:46:42 CET 2013


On 15-02-2013, at 10:28, Jannetta Steyn <jannetta at henning.org> wrote:

> Hi Ben
> 
> Thank you so much for spending the time to look at my code. I really
> appreciate it.
> 
> The unnecessary parameters were artefacts from me working on the model and
> putting things in and taking things out.
> 
> The model isn't quite producing what I expect yet, but it is definitely
> starting to look more interesting :-)
> 
> I am now getting this error:
> 
>> plot(ode)
> Error in is.null(times) : 'times' is missing
> 
> What on earth does it mean because I cant see any 'times' being missing. To
> me it seems that all is there?!?
> 

Difficult to tell as you haven't shown how ode was defined.

I just did this:

out<-ode(y=init, times=times, func=HH_soma, parms=parms)
plot(out)    

and got the plots of all state variables.

Berend



More information about the R-help mailing list