spotratecurve-helpers | R Documentation |
Helpers methods that return parts of a SpotRateCurve object according to a given term.
first(x, t)
last(x, t)
closest(x, t)
x |
a SpotRateCurve object. |
t |
a Term object.
|
A SpotRateCurve
object that is a subset of the given curve.
The elements returned are select according to the operation executed.
terms <- c(1, 11, 26, 27, 28)
rates <- c(0.0719, 0.056, 0.0674, 0.0687, 0.07)
curve <- spotratecurve(rates, terms, "discrete", "actual/365", "actual")
first(curve, "10 days")
last(curve, "10 days")
closest(curve, "10 days")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.