term | R Documentation |
term()
creates a Term object.
term(x, ...)
## S3 method for class 'numeric'
term(x, units = "days", ...)
## S3 method for class 'Term'
term(x, ...)
## S3 method for class 'Date'
term(x, end_date, calendar, ...)
x |
can be a numeric value representing the time period, a Term object, or the initial date for a period between two dates. |
... |
additional arguments |
units |
one of the valid |
end_date |
the final date for a period between two dates. |
calendar |
the calendar used to compute the amount of days for a period between two dates. |
A Term
object.
term(6, "months")
if (require("bizdays")) {
term(as.Date("2022-02-02"), as.Date("2022-02-23"), "Brazil/ANBIMA")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.