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.

Reply via email to