compound | R Documentation |
compounds some initial invest A for some time steps n using the interest rate r
compound(
A = NULL,
r = NULL,
n = NULL,
interval = 1L,
simple = T,
continuous = F
)
A |
initial amount |
r |
interest rate (in percent) |
n |
compounding steps, or compounding time horizon. For example, a yearly compounding would be n = 1, with an interval of interval = 1. Wheras a bi-yearly compounding over 1 year would be n = 1, interval = 2; |
interval |
the compounding interval (integer number) dividing the compounding steps n. Default 1L |
simple |
Use linear (default) or exponential compounding |
continuous |
should we use continuous compounding |
returns the compounded volume
christian bitter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.