powered by
Changes the period of an interest rates curve (object of class ircurve) from year to monthl or vice versa.
change_period(ircurve, to)
an object of class ircurve
"year" or "month"
An object of class ircurve with changed type.
# NOT RUN { my_ircurve <- as_ircurve(rep(0.01, 12), period = "month") change_period(my_ircurve, to = "year") # }
Run the code above in your browser using DataLab