Skip to content
Back to formatted view

Raw Message

Message-ID: <89b6b8c90809110242k6968e45brf4c450076302d2b3@mail.gmail.com>
Date: 2008-09-11T09:42:03Z
From: Yihui Xie
Subject: How to obtain a sequence of dates consisting of only weekdays
In-Reply-To: <AC9CF1A3B3582B4A847998B84DE457E4B7118D9E09@UKLONEXCPDV40.HDS.Int>

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