Description Usage Arguments Examples
View source: R/Rate_converter.R
Converts nominal and effective interest and discount rates.
1 | Rate_converter(num, rate1, m, rate2, k, type = "days")
|
num |
A numeric type value. It is the interest/discount rate to be converted. |
rate1 |
A string ("i", "d","f" or "j"). Type of interest/discount rate to be converted. |
m |
number of capitalizations. |
rate2 |
A string ("i" for effective interest rate, "d" for effective discount rate,"f" for nominal discount rate, "j" for nominal interest rate).Type of interest/discount rate to obtain. |
k |
An integer. Number of capitalizations per year. |
type |
A string. Reference for "k", indicating whether it is expressed as a fraction or as days ("frac" or "days"). |
1 2 3 4 | Rate_converter(0.04,"i",1,"i",6,"frac")
Rate_converter(0.04,"f",1,"j",6,"frac")
Rate_converter(0.04,"f",365,"d",60,"days")
Rate_converter(0.04,"f",365,"f",60,"days")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.