sub-.rate_curve: Returns a particular rate or rates from a curve

Description Usage Arguments Value Examples

Description

Returns a particular rate or rates from a curve

Usage

1
2
## S3 method for class 'rate_curve'
r[rate_type = "zero_eff", x = NULL]

Arguments

r

The rate_curve object

rate_type

The rate type

x

The points in time to return

Value

If x is NULL, then returns a rate function of rate_type type. Else, it returns the rates of rate_type type and corresponding to time x

Examples

1
2
3
r <- rate_curve(rates = c(0.1, 0.2, 0.3), rate_type = "zero_eff")
r["zero_eff"]
r["swap",c(1.5, 2)]


Search within the tvm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.