How do you read multiple .txt files into R? [duplicate]
You can try this: filelist = list.files(pattern = “.*.txt”) #assuming tab separated values with a header datalist = lapply(filelist, function(x)read.table(x, header=T)) #assuming the same header/columns for all files datafr = do.call(“rbind”, datalist)