[R] data frame manipulation ddply

2010-06-01 Thread arnaud Gaboury
Dear group, Here is my data frame: futures - structure(list(DESCRIPTION = c(CORN Jul/10, CORN Jul/10, CORN Jul/10, CORN Jul/10, CORN Jul/10, LIVE CATTLE Aug/10, LIVE CATTLE Aug/10, SUGAR NO.11 Jul/10, SUGAR NO.11 Jul/10, SUGAR NO.11 Jul/10, SUGAR NO.11 Jul/10, SUGAR NO.11 Jul/10 ),

Re: [R] data frame manipulation ddply

2010-06-01 Thread arnaud Gaboury
...@uni-bremen.de] Sent: Tuesday, June 01, 2010 11:38 AM To: arnaud Gaboury Subject: Re: [R] data frame manipulation ddply Hi Arnaud, maybe aggregate can help: PosFut - aggregate(futures$QUANTITY, list(DESCRIPTION = futures$DESCRIPTION, SETTLEMENT