powered by
toyears, tomonths and todays functions convert Term objects according to Daycount.
toyears
tomonths
todays
toyears(x, t)tomonths(x, t)todays(x, t)
tomonths(x, t)
todays(x, t)
A Term object converted to the units accordingly the used function.
a Daycount object.
a Term object.
toyears returns the given Term in years units. tomonths returns the given Term in months units. todays returns the given Term in days units.
dc <- daycount("actual/360") t <- term(10, "months") toyears(dc, t) tomonths(dc, t) todays(dc, t)
Run the code above in your browser using DataLab