Re: [R] aggravating aggregate

2015-08-05 Thread William Dunlap
# your data, from dump("xxx", file=stdout()) xxx <- structure(list(Registered = c(1327, 2129, 10, 433, 5, 166, 1784, 17, 787), GA_Total = c(127, 150, 0, 32, 1, 76, 153, 7, 31), PCT = c("1120", "1121", "1121", "1122", "1124", "1125", "1125", "1125", "1126" )), .Names = c("Registered", "GA_Total", "P

[R] aggravating aggregate

2015-08-05 Thread Jim Burke
Greetings R mavens (and that's YOU). Given the following how on earth do I aggregate and sum duplicate PCT rows into one combined row per PCT? Data types > str(xxx) 'data.frame': 9 obs. of 3 variables: $ Registered: int 1327 2129 10 433 5 166 1784 17 787 700 $ GA_Total : int 127 150 0 32 1