Re: [R] descretizing xy data

2008-11-04 Thread Rubén Roa-Ureta
Rubén Roa-Ureta wrote: 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

Re: [R] descretizing xy data

2008-11-04 Thread Rubén Roa-Ureta
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 ha

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 into 5 mm bins and

Re: [R] descretizing xy data

2008-11-03 Thread Erik Iverson
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 bi

[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