forwardrate()
creates a ForwardRate object.
forwardrate(x, ...)
# S3 method for numeric
forwardrate(
x,
terms,
compounding,
daycount,
calendar,
.copyfrom = NULL,
refdate = NULL,
...
)
# S3 method for SpotRateCurve
forwardrate(x, t1 = NULL, t2 = NULL, ...)
a numeric or a SpotRateCurve object.
additional arguments.
a numeric vector with positive values representing terms of the forward rates.
a character with the compouning name.
a character representing the daycount.
a calendar object.
a SpotRate object that is used as reference to build the SpotRateCurve object.
the curve reference date.
initial term
final term
A ForwardRate
object.
The arguments t1
and t2
define initial and final term used to
extract a ForwardRate from a SpotRateCurve.