Well, code with 50+ ifelse statements (probably nested) seems to me quite weird. I believe that such scheme could be solved differently but without real code it is nothing to suggest.
r-help-boun...@r-project.org napsal dne 18.09.2009 13:51:45: > On 9/18/2009 5:49 AM, premmad wrote: > > I tried running 50 lines of ifelse statement in R and the system says context > > stack overflow at 50 line.Is it the limitation of R or is there any way > > around that can be done to overcome this.Thanks > > You can always break it up into multiple lines. For example, the > following are equivalent if we ignore the presence of the temp variable > in the second case. > > x <- ifelse(a, b, ifelse(c, d, e)) > > and > > temp <- ifelse(c, d, e) > x <- ifelse(a, b, temp) > > Duncan Murdoch > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.