[R] descretizing xy data

Jon A jonny99 at u.washington.edu
Mon Nov 3 20:15:36 CET 2008


Thanks a lot Eric, that worked great. Sorry about not posting the data.
Jon


Jon A wrote:
> 
> Hello,
> I have a dataset with a continuous independent variable (fish length,
> range: 30-150 mm) and a binary response (foraging success, 0 or 1). I want
> to discretize fish length into 5 mm bins and give the proportion of
> individuals who successfully foraged in each each size bin. I have used
> the cut function to discretize the length values into my desired bins, but
> I can't figure out how to manipulate my response data in terms of the
> levels I've created. Any advice on how to achieve my task?
> 
> Thanks in advance.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/descretizing-xy-data-tp20307871p20308744.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list