Description Usage Arguments Value Examples
You can coerce objects to the DiscountFactor
class using this method.
1 2 3 4 | as_DiscountFactor(x, ...)
## S3 method for class 'InterestRate'
as_DiscountFactor(x, d1, d2, ...)
|
x |
object to coerce |
... |
other parameters passed to methods |
d1 |
a |
d2 |
a |
a DiscountFactor
object
1 2 3 | library("lubridate")
as_DiscountFactor(InterestRate(c(0.04, 0.05), c(2, 4), 'act/365'),
ymd(20140101), ymd(20150101))
|
Attaching package: 'lubridate'
The following object is masked from 'package:base':
date
<DiscountFactor> 0.961168781237985, 2014-01-01--2015-01-01
<DiscountFactor> 0.951524275217153, 2014-01-01--2015-01-01
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.