bd2t {bdscale} | R Documentation |
Date
s into your business-date scale.Transform Date
s into your business-date scale.
bd2t(dates, business.dates)
dates |
a |
business.dates |
a vector of |
returns an integer vector where each element is the number of business days t
after the first date in your business.dates
vector
monday <- as.Date('2014-10-13')
weekdays <- monday + 0:4
bd2t(monday + c(1, 3), weekdays)