[R] Using lubridate to increment date by business days only

Sarah Goslee sarah.goslee at gmail.com
Tue Nov 13 19:59:02 CET 2012


Does this help at all:
http://stackoverflow.com/questions/7595533/generating-a-time-series-with-a-specific-start-and-end-date

Sarah

On Tue, Nov 13, 2012 at 1:49 PM, ramoss <ramine.mossadegh at finra.org> wrote:
> Hello,
>
> I know how to increment a date by calendar date:
>
> ticker$ldate <- ticker$tdate + days(5)
>
> How do I increment it by business days only so that week-ends are not
> counted?
>
> So for example friday november 2 + 5days becomes friday november 9 & not
> wednesday nov 7.
>
> Thanks for your help.


--
Sarah Goslee
http://www.functionaldiversity.org




More information about the R-help mailing list