[R] load seven files (named by date) at a time

Mathew Brown mathew.brown at forst.uni-goettingen.de
Wed Jun 1 11:10:00 CEST 2011


Hello,

I'm trying to load a weeks worth of files that are each named by the 
date they were creaded (e.g., 20110601.RData), starting with the day 
before today so if today is June 1, I would like to load 20110525- 
20110531. The script was working until today, and x= 20110593 20110594 
20110595 20110596 20110597 20110598 20110599 20110600.
time=Sys.time()
t1<- as.numeric(format.Date(time, "%Y%m%d"))
#date range of data to load

t1=t1-1
t0 <-t1-7
x = t0:t1


Any solutions?

Thanks



More information about the R-help mailing list