Re: [R] Problem with recursion

2012-11-10 Thread Haszun
Thank you for help. -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-recursion-tp4649162p4649166.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailm

Re: [R] Problem with recursion

2012-11-10 Thread R. Michael Weylandt
On Sat, Nov 10, 2012 at 7:41 AM, Haszun wrote: > I know that maybe it will be stupid question. > > What iswrong with it (i think that i have to do the "stop moment", but i > dont know how) > > fibbonacci=function(x) { > while(x>0) { > if (x==1 || x==2) { > return(1) > } else fibbonacci(x-1)+fibbo