Displaying 1 result from an estimated 1 matches for "libor_rate1".
Did you mean:
libor_rate2
2013 Apr 03
4
Better way of writing R code
... 0.044
# __________________________________________________________
Depending on the maturity period, I have defined discount rates as
# FOR USD
if
(as.character(currency) ==
"USD")
{
if
(as.character(other_currency) == "GBP" & days_to_maturity <= 1)
{
libor_rate1 = df_LIBOR_rates$USD_o_n
libor_rate2 = df_LIBOR_rates$GBP_o_n
}
else if (as.character(other_currency) == "EURO" & days_to_maturity <= 1)
{
libor_rate1 = df_LIBOR_rates$USD_o_n
libor_rate2 = df_LIBOR_rates$EUR_o_n
}
......................
.........................