[R] Cannot Sum with DDPLY

Shivi82 shivibhatia at ymail.com
Mon Jun 8 12:48:16 CEST 2015


Hi All,
Kindly see the below code I have used:
maxorder<-ddply(test, ~ ORIGIN,summarize,Weight=sum(CHG_WT))

Here I have written the code to summarize values based on origin and total
weight however I am getting below error:
Error: ‘sum’ not meaningful for factors

Please advice. I need CHG_WT total for each state in the Origin column.




--
View this message in context: http://r.789695.n4.nabble.com/Cannot-Sum-with-DDPLY-tp4708338.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list