wilsonfreitas / R-fixedincome

Fixed income tools for R
http://wilsonfreitas.github.io/R-fixedincome/
Other
50 stars 25 forks source link

ForwardRate should have a refdate attribute #29

Closed wilsonfreitas closed 1 year ago

wilsonfreitas commented 1 year ago

The refdate is necessary to convert a ForwardRate object to a data.frame.

The data.frame has three columns: date, terms and rates.

The date column is created by summing the cumsum(terms) to the refdate.

This is a term structure of reference dates.

One more column should be added: forward terms, this represents the term for each rate.