Here's a one-liner:
lapply(scan("list.txt",""), read.table,sep=" ", row.names=1)
A short explanation: scan("list.txt","")
scans your file containing the list of locations (space separated)and outputs them as a vector of characters (because of the ""
) then with lapply
you apply to each of those locations the function read.table
with the right separator and other needed arguments. The final output is a list of datasets.