powered by
term() creates a Term object.
term()
term(x, ...)# S3 method for numeric term(x, units = "days", ...)# S3 method for Term term(x, ...)# S3 method for Date term(x, end_date, calendar, ...)
# S3 method for numeric term(x, units = "days", ...)
# S3 method for Term term(x, ...)
# S3 method for Date term(x, end_date, calendar, ...)
A Term object.
Term
can be a numeric value representing the time period, a Term object, or the initial date for a period between two dates.
additional arguments
one of the valid units: days, monts, years.
units
days
monts
years
the final date for a period between two dates.
the calendar used to compute the amount of days for a period between two dates.
term(6, "months") if (require("bizdays")) { term(as.Date("2022-02-02"), as.Date("2022-02-23"), "Brazil/ANBIMA") }
Run the code above in your browser using DataLab