Convenience functions for finding coupon dates and number of coupons of a bond.
coupons.dates(settle, mature, freq = 2)coupons.n(settle, mature, freq = 2)
coupons.next(settle, mature, freq = 2)
coupons.prev(settle, mature, freq = 2)
The settlement date for which the bond is traded. Can be a
character string or any object that can be converted into date using
as.Date
.
The maturity date of the bond. Can be a character string or
any object that can be converted into date using as.Date
The frequency of coupon payments: 1 for annual, 2 for semi-annual, 12 for monthly.