Extract a vector of cashflow times in years from a list of instruments

Share:

Description

Assumes that LIBOR tenor is in days, with 365 days per year. Assumes that SWAPs are semi-annual Returns a vector of all unique cashflow times in years

Usage

1
  fCreateTimeVector(dfInstruments)

Arguments

dfInstruments

A dataframe of instuments with at least columns Type and Tenor