Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.64.0812180913350.31455@tajo.ucsd.edu>
Date: 2008-12-18T17:15:49Z
From: Charles C. Berry
Subject: Contextstack overlow
In-Reply-To: <677B91F53FD4074CB84B79754E8521C4026C92F2@GEMSTONES.msu.montana.edu>

SR,

My answer to the question you posed is "Someone must know, but I do not 
know".

However, I suspect the answer to the question you should have asked is:

See

 	?cut
and
 	?findInterval

HTH,

Chuck


On Thu, 18 Dec 2008, Ranney, Steven wrote:

> All -
>
> I have a number of rows that I am assigning length classes to via
>
> l.class<-with(wae,
>  ifelse((Length>=120)&(Length<130),"125",
>  ifelse((Length>=130)&(Length<140),"135",
>  ifelse((Length>=140)&(Length<150),"145",
>  ifelse((Length>=150)&(Length<160),"155",
>  ifelse((Length>=160)&(Length<170),"165",
>  ifelse((Length>=170)&(Length<180),"175",
>  ...
>  ifelse((Length>=700)&(Length<710),"705",
>  "substock")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
>
> There are a total of 60 lines and I get a "contextstack overflow" error 
> at line 50.  From reading the archives, it looks as though this is a 
> hard limit but can be changed rather easily.  Unfortunately, I haven't 
> found any specifics on how to change this limit.  Does anyone know how I 
> can edit this upper limit?
>
> Thanks,
>
> SR
>
> Steven H. Ranney
> Graduate Research Assistant (Ph.D)
> USGS Montana Cooperative Fishery Research Unit
> Montana State University
> P.O. Box 173460
> Bozeman, MT 59717-3460
>
> phone: (406) 994-6643
> fax: (406) 994-7479
>
> http://studentweb.montana.edu/steven.ranney
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901