[R] help to sum up data frame
Mohan L
l.mohanphysics at gmail.com
Sun Nov 7 14:59:47 CET 2010
Dear All,
I have a data frame like this:
name ip Bsent Breceived
a 1 0.00 0.00
a 2 1.43 19.83
a 1 0.00 0.00
a 2 1.00 1.00
b 1 0.00 2.00
b 3 0.00 2.00
b 2 2.00 0.00
b 2 2.00 0.00
b 1 24.40 22.72
c 1 1.00 1.00
c 1 2.00 1.00
c 1 2.00 1.00
c 1 90.97 15.70
d 0 0.00 0.00
d 1 30.00 17.14
I want to sum up the similar name into one row, like :
name ip Bsent Breceived
a 6 2.43 20.83
b 9 28.40 26.72
c
d
I need help to sum up. Thanks for your time.
Thanks & Rg
Mohan L
More information about the R-help
mailing list