Hello everyone, I want to use a loop to load many files, each into a seperate variable (data.frames) and then - still in the loop - manipulate the present variable/data.frame.
So far this works: for (i in 1:2){ var <- paste("var",i,sep="") fileName <- paste(i,"rating.txt", sep="_") assign(var, read.table(fileName)) But how can I now referr to var / var[i] to manipulate that data.frame? For example: var <- var[ , -1] } # end of the for loop Many thanks for help! Johann ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.