Skip to content
Prev 261533 / 398502 Next

load seven files (named by date) at a time

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