I want to use read.table to input many files, each for a different year.  I
would like to use the macro variable 't' to refer to the exact file that I
would like to input the data using read.table.  How could I do this?  Thank
you!

for (t in 1970:2005)
{ edge <- read.table(file="edge_t.csv", header=T,  sep=",")
## I will  have many rows of code following the read.table line 
}

-- 
View this message in context: 
http://www.nabble.com/How-to-use-macro-variable-in-a-text-string-tp24615030p24615030.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

Reply via email to