Re: [R] Grouping data in ranges in table

2011-03-05 Thread Jorge Ivan Velez
Hi Jason, Something along the lines of with(Orange, table(cut(age, breaks = c(118, 664, 1004, 1372, 1582, Inf)), cut(circumference, breaks = c(30, 58, 62, 115, 145, 179, 214 should get you started. HTH, Jorge On Sat, Mar 5, 2011 at 5:38 PM, Jason Rupert <> wrote

Re: [R] Grouping data in ranges in table

2011-03-05 Thread Greg Snow
2011 3:38 PM > To: R Project Help > Subject: [R] Grouping data in ranges in table > > Working with the built in R data set Orange, e.g. with(Orange, > table(age, > circumference)). > > > How should I go about about grouping the ages and circumferences in the > follow

[R] Grouping data in ranges in table

2011-03-05 Thread Jason Rupert
Working with the built in R data set Orange, e.g. with(Orange, table(age, circumference)). How should I go about about grouping the ages and circumferences in the following ranges and having them display as such in a table? age range: 118 - 664 1004 - 1372 1582 circumference range: 30-58 62-