| DiscountFactor-operators {fmbasics} | R Documentation |
DiscountFactor operations
Description
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.
Details
The operations are:
-
c: concatenates a vector ofDiscountFactorobjects -
[: extract parts of aDiscountFactorvector -
[<-: replace parts of aDiscountFactorvector -
rep: repeat aDiscountFactorobject -
length: determines the length of aDiscountFactorvector -
*: multiplication ofDiscountFactorobjects. 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 ofDiscountFactorobjects. The start date date of both arguments must be the same. Arguments are recycled as necessary. -
<, >, <=, >=, ==, !=: these operate in the standard way on thediscount_factorfield.