Deleted:How to merge two file in R with the same column?
0
0
Entering edit mode
sat • 0
@ccbf0270
Last seen 13 months ago
italy
How can i merge these two files with the same column ID as below:
file1:
ID          feature1      feature2       feature3
A,B,C        1              100            150
D,F          2              200            500
G,R          2              200            600
H            6              500            800
S            8              600            700

file2:
ID     feature4    feature5
A          5           4
F          6           7
G          4           3
H          8           2
P          2           1


OUTPUT:
  ID          feature1      feature2       feature3     ID     feature4    feature5
  A,B,C        1              100            150         A          5           4
  D,F          2              200            500         F          6           7
  G,R          2              200            600         G          4           3
  H            6              500            800         H          8           2
  S            8              600            700         *          *           *
  *            *               *             *           P          2           1
R column merge join • 332 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 749 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