Adding to Carlo's point:
- Use
list.filesto get a list of file names/locations - ths will be the list of files to read. - Use
lapplywithread.tableon the above list to get a list ofdata.frameobjects with the content of each file. You will want to uniquify column names in individualdata.framesso merging would not create suffixes on similarly names columns. - Use
Reducewithmergeto combine the list from step-2 to get a single data frame.
You should provide the first few lines in each file and an example of the desired output. It would be difficult to answer the question without this information.
with tsv-utils :
input:
output: