spotrate()
function creates SpotRate
objects.
spotrate(x, compounding, daycount, calendar, .copyfrom = NULL)
a numeric vector representing spot rate values.
a Compounding
object.
a Daycount
object.
a bizdays
calendar.
a SpotRate
object used as reference to copy
attributes.
A SpotRate
object.
spotrate(0.06, "continuous", "actual/365", "actual")
#> [1] "0.06 continuous actual/365 actual"
spotrate(c(0.06, 0.07, 0.08), "continuous", "actual/365", "actual")
#> [1] "0.06 continuous actual/365 actual" "0.07 continuous actual/365 actual"
#> [3] "0.08 continuous actual/365 actual"