difftime_business {quantdates} | R Documentation |
difftime_business
Description
difftime_business
Usage
difftime_business(tfinal, tinitial, wd = wdBOG)
Arguments
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 |
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.
Value
Number of days between the specified dates.
Author(s)
Diego Jara and Juan Pablo Bermudez
Function to count the number of business days between two dates.
Examples
#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)
[Package quantdates version 2.0.4 Index]