Suppose you have 4 or more csv files and I just want to merge them, and print the output!
I opened the files like so:
df1 <- read.csv("file1", sep ='\t')
df2 <- read.csv("file2", sep ='\t')
df3 <- read.csv("file3", sep ='\t')
df4 <- read.csv("file4", sep ='\t')
The catch is that all of the files have different numbers of both rows and columns and no, identical column names. My professor said to just merge them, so I'm expecting the output to be something like this
file1.column11 ... file1.column1N file2.column21 ... file2.column2N ...
value11 ... value1N NA ... NA
.
.
.
NA ... NA value21 ... value2N
Can this be done somehow? I've been using merge(), join_all() and other stuff, and I cant get to the bottom of this...
I'm also very new to R.