Description Usage Arguments Value Author(s) Examples
View source: R/CountingDates.R
difftime_business
1 | difftime_business(tfinal, tinitial, wd = wdBOG)
|
tfinal |
Final date, it must be a business day. |
tinitial |
Initial date, it must be a business day. |
wd |
Vector of dates with business days. The default are the business days of Bogota. |
Number of days between the specified dates.
Diego Jara
Function to count the number of business days between two dates.
1 2 3 4 5 | #Function accepts Dates as Dates or as characters.
difftime_business(tfinal='2023-03-08',tinitial='2019-02-28',wd=wdBOG)
difftime_business(tfinal=as.Date('2023-03-08'),tinitial=as.Date('2019-02-28'),wd=wdBOG)
difftime_business(tfinal='2023-03-08',tinitial=as.Date('2019-02-28'),wd=wdLDN)
difftime_business(tfinal='2023-03-08',tinitial='2019-02-28',wd=wdNY)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.