Skip to content

Using lubridate to increment date by business days only

2 messages · ramoss, Sarah Goslee

#
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.



--
View this message in context: http://r.789695.n4.nabble.com/Using-lubridate-to-increment-date-by-business-days-only-tp4649414.html
Sent from the R help mailing list archive at Nabble.com.
#
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:
--
Sarah Goslee
http://www.functionaldiversity.org