i have one file as
> munnabhai<-read.table(hyphen[1],skip=1)
> munnabhai
     V1     V2  V3 V4         V5           V6 V7
1     1 12AS_A   4  A    0.00000  157.8994119  2
2     2 12AS_A   5  Y  -41.61818  -56.8011795  1
3     3 12AS_A   6  I  -55.47021  -51.1328352  1
4     4 12AS_A   7  A  -54.43085  -58.3428366  1
5     5 12AS_A   8  K  -54.31525  -39.2709474  1
6     6 12AS_A   9  Q  -61.37700  -33.5304490  1
7     7 12AS_A  10  R  -86.14173  -32.3448242  1
8     8 12AS_A  11  Q  -52.88589  -57.2830246  1

want to read v7 vector & add V8,
& edit it as in the same file

     V1     V2  V3 V4         V5           V6 V7        V8
1     1 12AS_A   4  A    0.00000  157.8994119  2        2.3  
2     2 12AS_A   5  Y  -41.61818  -56.8011795  1        45.5
3     3 12AS_A   6  I  -55.47021  -51.1328352  1        78.5    
4     4 12AS_A   7  A  -54.43085  -58.3428366  1        7.3
5     5 12AS_A   8  K  -54.31525  -39.2709474  1        8.9
6     6 12AS_A   9  Q  -61.37700  -33.5304490  1        4.5     
7     7 12AS_A  10  R  -86.14173  -32.3448242  1        7.3     
8     8 12AS_A  11  Q  -52.88589  -57.2830246  1        1.0


--
View this message in context: 
http://r.789695.n4.nabble.com/how-to-read-file-append-at-specified-positon-tp4424227p4424227.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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