powered by
Changes the type of an interest rates curve (object of class ircurve) from forward to spot or vice versa.
change_type(ircurve, to)
an object of class ircurve
"forward" or "spot"
An object of class ircurve with changed type.
# NOT RUN { my_ircurve <- as_ircurve(c(0.1, 0.2, 0.3), type = "spot") change_type(my_ircurve, to = "forward") # }
Run the code above in your browser using DataLab