Re: [R] descretizing xy data

2008-11-03 Thread Jon A
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

[R] descretizing xy data

2008-11-03 Thread Jon A
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 cu