[R] How to merge two files

albert coster albertcoster2010 at gmail.com
Mon Jul 4 20:24:45 CEST 2011


Dear all,

I have two files :

seq.txt: NNNNNNNNNNATTAAAGGGC

scores.txt :

0.8
0.7
0.3
0.5
0.6
0.5
0.01
0.9
0.3
0.8

I want output as following

A 0.8
T 0.7
T 0.3
A 0.5
A 0.6
A 0.5
G 0.01
G 0.9
G 0.3
C 0.8

Where N are deleted and only A/T/G/C are appearing in a column.

Thanks

Albert
-------------- next part --------------
0.8
0.7
0.3
0.5
0.6
0.5
0.01
0.9
0.3
0.8
-------------- next part --------------
NNNNNNNNNNATTAAAGGGC


More information about the R-help mailing list