I have multiple files in a directory. I want to merge them in a way such that the rows are merged together, and file names are kept as column headers. For example, file1 looks like
ENSG1 12
ENSG2 13
ENSG3 14
file2 looks like
ENSG1 13
ENSG2 14
ENSG4 15
I'm looking forward to an output like
file1 file2
ENSG1 12 13
ENSG2 13 14
ENSG3 14 0/na
ENSG4 0/na 15
Do you have any idea how to do this? Thank you for your time!