I have a variation on the oh-so-common problem of how to merge things together in R.
I have a set of .txt files in a particular folder, and I have written a functi
Looks like a textbook use case for Reduce.
Reduce
merge.all <- function(x, y) { merge(x, y, all=TRUE, by="Sample") } output <- Reduce(merge.all, DataList)