Re: [R] Binning groups

2008-05-28 Thread Julian Burgos
see ?findIntervals francogrex wrote: Hi, this is probably quite simple but I can't seem to do it correctly. I have a data frame of counts of infections in different ages; something like: count=c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 7, 8, 8, 9, 9, 10, 11, 15, 17, 17, 17, 17, 19, 19, 19,

Re: [R] Binning groups

2008-05-24 Thread David Winsemius
> On Thu, 22 May 2008, francogrex wrote: > > Hi, this is probably quite simple but I can't seem to do it correctly. I > have > a data frame of counts of infections in different ages; something like: > count=c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 7, 8, 8, 9, 9, > 10, 11, 15, 17, 17, 17, 1

Re: [R] Binning groups

2008-05-22 Thread Anne York
On Thu, 22 May 2008, francogrex wrote: f > f > Hi, this is probably quite simple but I can't seem to do it correctly. I have f > a data frame of counts of infections in different ages; something like: f > count=c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 7, 8, 8, 9, 9, f > 10, 11, 15, 17,

Re: [R] Binning groups

2008-05-22 Thread jim holtman
If you just want to bin the current ages: > count=c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 7, 8, 8, 9, 9, + 10, 11, 15, 17, 17, 17, 17, 19, 19, 19, 19, 20, 20, 20, 21, 21, + 21, 22, 22, 22, 22, 23, 23, 23, 23, 23, 24, 24, 25, 27, 31, 33 + ) > age=c(3, 8, 9, 7, 56, 58, 10, 13, 53, 55, 11, 12,

Re: [R] Binning groups

2008-05-22 Thread jim holtman
Is this what you want: > count=c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 7, 8, 8, 9, 9, + 10, 11, 15, 17, 17, 17, 17, 19, 19, 19, 19, 20, 20, 20, 21, 21, + 21, 22, 22, 22, 22, 23, 23, 23, 23, 23, 24, 24, 25, 27, 31, 33 + ) > age=c(3, 8, 9, 7, 56, 58, 10, 13, 53, 55, 11, 12, 14, 51, 54, + 15,

[R] Binning groups

2008-05-22 Thread francogrex
Hi, this is probably quite simple but I can't seem to do it correctly. I have a data frame of counts of infections in different ages; something like: count=c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 7, 8, 8, 9, 9, 10, 11, 15, 17, 17, 17, 17, 19, 19, 19, 19, 20, 20, 20, 21, 21, 21, 22, 22, 22