[R] Newbie q. need some help understanding this code.

2004-09-15 Thread sean kim
dear all. Would someone be kind and willing to explain the code below for a person who has never used R? ( that is if one has enough time and inclination) It implements gillepsie's stochastic algorithm for Lotka Volterra model. What would help me tremendously is to see the breakdown of the

Re: [R] Newbie q. need some help understanding this code.

2004-09-15 Thread Kevin Wang
Hi, sean kim wrote: thanks for any insights or other comments. I would suggest that you run the code line by line, to see what it does yourself. It is the best way to learn! library(stepfun) This just loads the package stepfun. lv - function(N=1000,cvec=c(1,0.005,0.6),x=c(50,100)) {