create_cashflows_matrix: Cashflows Matrix Creation

Description Usage Arguments Value See Also Examples

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))

changshun/termstrc documentation built on May 13, 2019, 3:24 p.m.