[R] How to obtain a sequence of dates consisting of only weekdays
xieyihui at gmail.com
Thu Sep 11 11:42:03 CEST 2008
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 :-)
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.
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872, China
More information about the R-help