(Repost so tables aren't images.) I currently have two .csv files that look like this:
File 1:
ATTEMPT RESULTS
Int1 B
Int2 H
File 2:
NAME OUTCOME1 OUTCOME2 OUTCOME3
Sam1 A B C
Sam2 D E F
Sam3 G H I
I would like to merge and align the two .csvs such that the result each row of File 1 is aligned by its "result" cell, against any of the three "outcome" columns in File 2, leaving blanks or "NA"s if there are no similarities.
Ideally, would look like this:
ATTEMPT RESULTS NAME OUTCOME1 OUTCOME2 OUTCOME3
Int1 B Sam1 A B C
Sam2 D E F
Int2 H Sam3 G H I
Any help would be much appreciated.
Edit: for my real data, I have several thousand rows in each file.