Possible Duplicate:
Read multiple CSV files into separate data frames
How can I fill part of URL with a for loop, I tried one URL it worked, eg:
data <- read.table("http://somelink.php?station=2&start=2012-01-01&etc", header=T,sep="|")
But when I changed the code into a loop, it failed:
station <- c(1:10)
Year <- format(Sys.time(), "%Y")
for (i in station){
data <- read.table("http://somelink.php?station=i&start=Year-01-01&etc", header=T,sep="|")
}