I split some data according to factors like:
a <- factor(data$fact)
b <- split(data,a)
Now I would like to add some of the factor together e.g.
tot <- b$A+b$B
but I'm getting the following error,
"sum" not meaningful for factors
Any help would be great.
aaa val1 val2 ...
aaa
bbb
bbb
ccc
ccc
Now if I split into factors I have three. But I want for example aaa and ccc to be considered together. This meas that the value in the other column should be summed up.
Thanks