spotrate: Create SpotRate objects

View source: R/spotrate-class.R

spotrateR Documentation

Create SpotRate objects

Description

spotrate() function creates SpotRate objects.

Usage

spotrate(x, compounding, daycount, calendar, .copyfrom = NULL)

Arguments

x

a numeric vector representing spot rate values.

compounding

a Compounding object.

daycount

a Daycount object.

calendar

a bizdays calendar.

.copyfrom

a SpotRate object used as reference to copy attributes.

Value

A SpotRate object.

Examples

spotrate(0.06, "continuous", "actual/365", "actual")
spotrate(c(0.06, 0.07, 0.08), "continuous", "actual/365", "actual")

fixedincome documentation built on July 9, 2023, 7:28 p.m.