View source: R/CountingDates.R
difftime_business | R Documentation |
difftime_business
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. See details |
wd refers to the business days of a specific location:
wdNYGB for New York Government Bonds Market.
wdNY for New York Stock Exchange Market.
wdLDN for London.
wdBOG for Bogota.
Number of days between the specified dates.
Diego Jara and Juan Pablo Bermudez
Function to count the number of business days between two dates.
#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)
difftime_business(tfinal='2023-03-08',tinitial='2019-02-28',wd=wdNYGB)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.