Re: [R] An infinite recursion error please explain!

2011-07-24 Thread Uwe Ligges
On 23.07.2011 04:29, mousy0815 wrote: Probability<- function(N, f, w, b, y, t, q) { #N is the number of lymph nodes #f is the fraction of Dendritic cells (in the correct node) that have the antigen #w is time in terms of hours #b is the starting position (somewh

Re: [R] An infinite recursion error please explain!

2011-07-23 Thread mousy0815
edit: I fixed it; apparently I needed to change the ceiling(w/q) to w%/%q, though I'm not really sure why that made such a difference. -- View this message in context: http://r.789695.n4.nabble.com/An-infinite-recursion-error-please-explain-tp3688260p3689621.html Sent from the R help mailing list

Re: [R] An infinite recursion error please explain!

2011-07-23 Thread mousy0815
In response to the second question about the placement of D<=t, there are two instances of it: once after the comment "starts inside node" (After the line with the comment "start & end in first node") and one after "starts outside node." Did that answer the question? I don't know if this helps, b

Re: [R] An infinite recursion error please explain!

2011-07-23 Thread Carl Witthoft
Not sure, but I played a little with the progression of w and m, and it appears that it doesn't take long for their values to converge (i.e. they don't change any more). Once that happens, D is not going to change. Further, unless I'm misreading the if {...} indents, you appear to be check