A number of different operations can be performed on or with
DiscountFactor objects. Methods have been defined for base
package generic operations including arithmetic and comparison.
The operations are:
c: concatenates a vector of
[: extract parts of a
[<-: replace parts of a
rep: repeat a
length: determines the length of a
*: multiplication of
DiscountFactor objects. The end
date of the first discount factor object must be equivalent to the start
date of the second (or vice versa). Arguments are recycled as necessary.
/: division of
DiscountFactor objects. The start date
date of both arguments must be the same. Arguments are recycled as necessary.
<, >, <=, >=, ==, !=: these operate in the standard way on the
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.