[R] Need help on changing a table

gsmkb86 gsmkb_86 at hotmail.com
Sat Dec 1 18:59:01 CET 2007


Hi all:
Im kind of new on R and I need help changing a table. The thing is, i read a
file on R using the read.table command and the table looks like this:
Item      3d Plot     XY plot    
001          1             0            
001          0             1            
001          0             1      
002          1             0
002          1             0
002          0             1
...            ..             ..
And what I want to do is generate a new table by item with the sum of the
numbres, the next one is an example:

Item     3d Plot       XY plot
001          1              2
002          2              1
003          ...            ...

Does anyone know how to do this? Thanks in advance, help is greatly
appreciated
-- 
View this message in context: http://www.nabble.com/Need-help-on-changing-a-table-tf4929014.html#a14107837
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list