Creates an object of class ircurve which represents in interest rates curve.
The curve cosists of interest rates and is of type either "forward" or
"spot". The interest rates curve can be for monthly or yearly periods.
Usage
as_ircurve(rates = double(), type = "forward", period = "year")