Re: [R] Counting frequency within each range

2012-07-26 Thread Chintanu
","60-120","120-240","240-480","480-960"))) > ) > colnames(a1)<-c("numbers","Freq") > a1 > > A.K. > > > > > > - Original Message - > From: Chintanu > To: r-help@r-project.org > Cc

Re: [R] Counting frequency within each range

2012-07-26 Thread arun
uot;,"10-20","20-30","30-60","60-120","120-240","240-480","480-960"))) ) colnames(a1)<-c("numbers","Freq")  a1 A.K. - Original Message - From: Chintanu To: r-help@r-project.org Cc: Sent: T

Re: [R] Counting frequency within each range

2012-07-26 Thread David L Carlson
[mailto:r-help-bounces@r- > project.org] On Behalf Of Chintanu > Sent: Thursday, July 26, 2012 8:23 PM > To: r-help@r-project.org > Subject: [R] Counting frequency within each range > > Hi, > > This is a simple problem, but for the life of me I cannot find the > answer

Re: [R] Counting frequency within each range

2012-07-26 Thread R. Michael Weylandt
Combine cut() and table() Michael On Jul 26, 2012, at 8:22 PM, Chintanu wrote: > Hi, > > This is a simple problem, but for the life of me I cannot find the answer. > How to determine frequency within given ranges ? > I know that table() gives frequency, for example > > a <- table(numbers) >>

[R] Counting frequency within each range

2012-07-26 Thread Chintanu
Hi, This is a simple problem, but for the life of me I cannot find the answer. How to determine frequency within given ranges ? I know that table() gives frequency, for example a <- table(numbers) > a numbers 4 5 23 34 43 54 56 65 67 324 435 453 456 567 657 2 1 2 2 1 1