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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 ______________________________________________ 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.