add_conventions takes a data frame with a currency.var column and
returns the same data frame with eight other columns of accounting
conventions added to it.
Usage
add_conventions(x, currency.var = "currency")
Arguments
x
a data frame containing all necessary information
currency.var
a character indicating the name of currency column
Value
a data frame with eight more columns of accounting conventions:
badDayConvention (a character indicating how non-business days are
converted), mmDCC (the day count convention of the instruments),
mmCalendars (any calendar adjustment for the CDS), fixedDCC (the day count
convention of the fixed leg), floatDCC (the day count convention of the
floating leg), fixedFreq (the frequency of the fixed rate of swap being
paid), floatFreq (the frequency of the floating rate of swap being paid)
and swapCalendars (any calendar adjustment for swap rate)