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 ofDiscountFactor
objects -
[
: extract parts of aDiscountFactor
vector -
[<-
: replace parts of aDiscountFactor
vector -
rep
: repeat aDiscountFactor
object -
length
: determines the length of aDiscountFactor
vector -
*
: multiplication ofDiscountFactor
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 ofDiscountFactor
objects. The start date date of both arguments must be the same. Arguments are recycled as necessary. -
<, >, <=, >=, ==, !=
: these operate in the standard way on thediscount_factor
field.