You need only one loop,
year <- 1951:2000
filelist <- paste("C:\\Documents and Settings\\Data\
\table_",year,".txt", sep="")
filelist
for (ii in seq_along(year)) {
assign(paste("table_", year[ii], sep=""),
read.table(file=ifile[ii], header=TRUE,
sep
See:
https://stat.ethz.ch/pipermail/r-help/2009-March/192422.html
On Mon, Mar 23, 2009 at 12:52 PM, Steve Murray wrote:
>
> 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
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 th
3 matches
Mail list logo