Skip to content
Prev 59714 / 398502 Next

Automatic file reading

Anders Malmberg wrote:

            
pairlist <- vector(8, mode = "list")
for (i in 1:8){
   name <- paste("pair",i,sep="")
   pairlist[[i]] <- read.table(paste("/home/andersm/tmp/",name,sep=""))
}

or use assign(), but you don't want to do that really.

Uwe Ligges