change_period: Change the period of an interest rates curve

Description Usage Arguments Value Examples

View source: R/ircurve.R

Description

Changes the period of an interest rates curve (object of class ircurve) from year to monthl or vice versa.

Usage

1
change_period(ircurve, to)

Arguments

ircurve

an object of class ircurve

to

"year" or "month"

Value

An object of class ircurve with changed type.

Examples

1
2
my_ircurve <- as_ircurve(rep(0.01, 12), period = "month")
change_period(my_ircurve, to = "year")

actuaryr documentation built on April 14, 2020, 6:15 p.m.