[R] Table Help

McMurtry, Benjamin G. BENJAMIN.G.MCMURTRY at saic.com
Tue May 24 22:39:26 CEST 2005

 Reply to sender  Reply to all Reply to folder  Forward Move/Copy  Delete
Read previous item  Read next item Get help information on the current
From: 	McMurtry, Benjamin G.  
To: 	'r-help-request at stat.math.ethz.ch' 
Subject: 	Table Help 
Sent: 	5/24/2005 4:33 PM 
	Importance: 	Normal 

I have a very large table that I want to add some of the certain rows.

The table is as follows:

Username1 2
Username1 4
Username2 6
Username2 10
Username3 12
Username3 10
Username3 16

Etc ....

The data is sorted by Column 1 (Ie the username) then by columm 2 (The

I want to combine the rows so it would be as follows:

Username1 6
Username2 16
Username3 38

Is there  easy way using a feature like bind to sum all of collumn two where
column 1 is the same?


More information about the R-help mailing list