[R] Error in Aggregate

arunkumar1111 akpbond007 at gmail.com
Wed Feb 29 13:16:53 CET 2012


Hi 

My dataframe  looks like this

data=
id V1 V2 V3 V4
1  5 6  7 8
1  10 20 30 40
2  23 54 54 6
3  43 54 54 33
4  12 34 54 54
4  34 54 23 52

I have to sum by id

I used command aggregate(data,by =list(data$id),FUN=sum)

Error i face is

Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L), na.rm = FALSE) : 
  sum not meaningful for factors


Please help me


-----
Thanks in Advance
        Arun
--
View this message in context: http://r.789695.n4.nabble.com/Error-in-Aggregate-tp4431318p4431318.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list