Dear R-helpers,

I have two rows in my dataframe:

ID    VALUE
1A    10
1B    15

and I would like to combine these two rows into a single (new) row in my
dataframe:

ID    VALUE
1    25

...simply by specifying a new value for ID and summing the two VALUES.

I have been trying to do this with with rbind, but it's not working.

I'd appreciate any pointers.

Thanks, Mark Na

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to