Deleted:merge two file with more than one condition R
1
0
Entering edit mode
sat • 0
@ccbf0270
Last seen 23 months ago
italy

how i can merge two file with more than one condition in R?

 file1:
 col1     col2    col3    col4      col5    col6

  1       1355    1355    83.33      10      2
  1       1357    1357     70        12      4
  ...

 file2:
 col1    col2   col3   col4    col5     col6    col7 
 1       1355    +       5       0       GG      GGA
 ...

i want to merge two file if col1 and col2 in two file was the same:
  output:
all columns of file 1 and col3, col6 and col7 from file 2:

 col1     col2    col3    col4      col5    col6    col 7 col8 col9 

  1       1355    1355    83.33      10      2       +     GG   GGA

 ```
R merge condition • 627 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1977 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6