[R] Grouping data in ranges in table
Jason Rupert
jasonkrupert at yahoo.com
Sat Mar 5 23:38:08 CET 2011
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- 115
120-142
145-177
179-214
Thanks for any feedback and insights, as I hoping for an output that looks
something like the following:
circumference range
30-58 62- 115 145-177....
age range
118 - 664 ...
1004 - 1372 ...
1582 ....
Thanks a ton.
More information about the R-help
mailing list