create_cashflows_matrix: Cashflows Matrix Creation

Description Usage Arguments Value See Also Examples

View source: R/create_cf_m.R

Description

Creates a matrix of cashflows for a specified group of bonds for a static bond data set. The number of rows is the number of cashflows for the bond with the longest maturity.

Usage

1

Arguments

group

static bond data set for a certain group of bonds.

include_price

if TRUE the dirty price is included (default: FALSE).

Value

Returns a matrix which consits of the calculated cashflows.

See Also

create_maturities_matrix

Examples

1
2
3
4
5
data(govbonds)
(cf <- create_cashflows_matrix(govbonds[[1]]))

## cf matrix with included current dirty price 
(cf_p <- create_cashflows_matrix(govbonds[[1]],include_price=TRUE))

termstrc documentation built on May 29, 2017, 1:05 p.m.