... or, if you are wedded to the window() approach, you could use the match
function ....

dat_seq <- seq(as.Date("2000-01-01"), as.Date("2010-01-01"), by="1 day")

window(dat_seq, start= match(as.Date("2000-01-01"), dat_seq),
                        end = match(as.Date("2007-01-01"), dat_seq))

HTH

Pete


-- 
View this message in context: 
http://r.789695.n4.nabble.com/Selecting-a-subset-of-date-range-tp3252845p3253045.html
Sent from the Rmetrics mailing list archive at Nabble.com.

_______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.

Reply via email to