Displaying 1 result from an estimated 1 matches for "table_1951".
Did you mean:
table_1.5.1
2009 Mar 23
2
Looping of read.table and assignment
Dear all,
I am trying to read in and assign data from 50 tables in an automated fashion. I have the following code, which I created with the help of textbooks and the internet, but it only seems to read in the final data file over and over again. For example, when I type:> table_1951 I get the same values in the table as when I type> table_2000 despite the values in the source tables being different:
year <- 1951:2000
filelist <- paste("C:\\Documents and Settings\\Data\\table_",year,".txt", sep="")
filelist
# Code seems to operate succ...