bd2t: Transform 'Date's into your business-date scale.

Description Usage Arguments Value Examples

Description

Transform Dates into your business-date scale.

Usage

1
bd2t(dates, business.dates)

Arguments

dates

a Date vector for which you want to transform each date into an integer t which is the number of business days after the first date in your business.dates vector

business.dates

a vector of Date objects, sorted ascending

Value

returns an integer vector where each element is the number of business days t after the first date in your business.dates vector

Examples

1
2
3
monday <- as.Date('2014-10-13')
weekdays <- monday + 0:4
bd2t(monday + c(1, 3), weekdays)

bdscale documentation built on May 2, 2019, 2:40 a.m.