[R] (no subject)
    rajib prasad 
    rwho2007 at gmail.com
       
    Fri Aug 23 12:17:53 CEST 2013
    
    
  
I am new to R. I have a data like:
                              x      y       z      w       p  ..........      m
                       1     10    15     20     25     30
                       2     11     16    21     26     31
                       3      12     17    18    19     20
                       4      51     52    53    55    67
                 .......
thus I have 145 rows and 160 column in my data which is named as
data.csv.  Now i want to create a new column 'm' and for every row m
will take value =column 7+ column 12+ column 57+ column 45 i.e. for
every row it will take value of sum of corresponding row's 7 & 12 & 57
& 45 column's value .
So, how to write the code for this operation?
--
RAJIB PRASAD
Centre for Economic Studies & Planning
Jawaharlal Nehru University
New Delhi-67
contact no: 09868320368
mail id: rwho2007 at gmail.com
    
    
More information about the R-help
mailing list