I have multiple Excel files, each with two columns. One being the same and the other being different for different files.
How can I merge all the files by their common column and save them as a new file?
Note:
I don't wish to combine them one under the other (using rbind
). Instead, I want to merge
them based on the commun column.
For R:
I have filenames in the following format.
percent- 15 knt 03_01__00_51.csv
percent- 20 knt 03_01__00_54.csv
percent- 25 knt 03_01__00_57.csv
Due to the file names format I can't write a script to read each file individually. I don't know how to write a loop that iterates over just 15 ,20 .... and leaves the end part somehow.