Entering edit mode
6.3 years ago
David_emir
▴
490
Hello All,
I am using R to merge two different CSV file into one new file. both of them has got gene name (1st column) same and the subsequent columns will be my sample ID, I need the output file as follow'
1st_file.csv
Gene sample1 sample2 smpleN
a 1 4 7
b 2 5 8
c 3 6 9
2nd_file.csv
Gene sample3 sample4 smpleN1
a 1 4 7
b 2 5 8
c 3 6 9
I need to have a combined file a
Gene sample1 sample2 smpleN sample3 sample4 smpleN1
a 1 4 7 1 4 7
b 2 5 8 2 5 8
c 3 6 9 3 6 9
Please let me know how to get this in R