Something like this should work, only Sept has 30 days, not 31: > files <- seq(as.Date('2008-09-30'), by = '1 day', length = 250) > input <- paste(".....jsp?y=" + , format(files, "%Y") + , "&m=" + , format(files, "%m") + , "&d=" + , format(files, "%d") + , sep = "" + ) > > head(input) [1] ".....jsp?y=2008&m=09&d=30" ".....jsp?y=2008&m=10&d=01" [3] ".....jsp?y=2008&m=10&d=02" ".....jsp?y=2008&m=10&d=03" [5] ".....jsp?y=2008&m=10&d=04" ".....jsp?y=2008&m=10&d=05" >
On Mon, Dec 6, 2010 at 8:18 PM, Arsenio Staer <arsenio.st...@gmail.com> wrote: > > So i realized putting this > raw.untr <- as.data.frame(read.csv(file='.......jsp?y=2008&m=09&d=30', > header = TRUE, as.is = TRUE)) > > reads the file prefectly, so i was wondering how can i create a set of > dataframes each with observations for one day (say for 3 years with 250 days > of data each year = 750 datasets) ? And in each loop of a cycle the text > string in the url would change to reflect the new date, say from > y=2008&m=09&d=30 to y=2008&m=09&d=31? > > Any help would be great, i somewhat expected more of a reaction given how > vibrant R community is, > > Arsenio > > -- > View this message in context: > http://r.789695.n4.nabble.com/Downloading-a-csv-through-a-jsp-url-with-variable-parameters-R-code-or-package-tp3070541p3075644.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. > -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? ______________________________________________ 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.