Description Usage Arguments Value See Also Examples
If a bond has a list of potential workout dates such as a call schedule, this
procedure will be called for each workout date. Dates can be passed as R date
types or can be in ymd
or mdy
form with any of the common
delimiters used in lubridate. The function is vectorized and if you don't pass
in an "id," normally the CUSIP, the integers 1 to N will be used where N is
the number of workout dates.
1 2 | create_cashflows(maturity, coupon, settle, conv = "30/360", freq = 2,
redemption = 100, id = NULL)
|
maturity |
Maturity/Workout date |
coupon |
Annnual coupon amount |
settle |
Settlement date |
conv |
Daycount convention (one of |
freq |
Coupon frequency (number of periods per year) |
redemption |
Redemption value or par amount |
id |
CUSIP or other id to be used as an identifier in the returned tbl_df |
tbl_df with cashflows counting back to the coupon date before settle. Columns are (id, cashflow date, cashflow amount)
Other cashflows: create_cf_amounts
1 | create_cashflows("2045-02-15", 2.5, "2015-05-07", "Act/Act", 2, 100,"ABCD")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.