How to obtain a sequence of dates consisting of only weekdays
In fact, you can even use weekdays() to get the names of the weekdays and then use the operator "%in%" to exclude the weekends. In this case, I'm sure there will be no further problems :-) Yihui
On Thu, Sep 11, 2008 at 5:33 PM, Weiyang Lim <Weiyang.Lim at henderson.com> wrote:
I see. That's a nice idea. Thanks. In that case, I suppose I will have to manually find out the starting weekday of the first day specified (I will have to know whether the starting day is Tuesday, Wednesday etc) before subsetting using what you have mentioned below. Thanks. Regards, Weiyang
Yihui Xie <xieyihui at gmail.com> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China