[R] How to use macro variable in a text string
kxk
kkong at u.washington.edu
Wed Jul 22 23:46:36 CEST 2009
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.
More information about the R-help
mailing list