[R] Summarizing data based on Date

Shivi82 shivibhatia at ymail.com
Mon Jun 8 11:23:06 CEST 2015


Hi Petr,
Thanks for the explanation below. 
I tried the code you supplied however it seems as my date is a factor hence
it is not working.
The error I got from the code was :

Error: unexpected symbol in:
"final<-aggregate(test$CHG_WT,list(format(test$CR_DT,"%d"),sum)
final"

str(test$CR_DT)- gives Factor with 31 levels 



--
View this message in context: http://r.789695.n4.nabble.com/Summarizing-data-based-on-Date-tp4708328p4708333.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list