present_value | R Documentation |
computes the present value of some cashflow stream using the provided interest rate, cashflow transaction, compounding type and termin period.
present_value(
cashflow = NULL,
r = NULL,
terminal_period = NULL,
simple = F,
verbose = T
)
cashflow |
a collection of cashflows made to an idealized bank - a cashflow stream (positive and negative) |
r |
interest rate (in percent) |
terminal_period |
after how many future periods the cashflow should be realized. if this is zero, then the terminal period is the last time step a cashflow transaction occurs (e.g., length(cashflow)). |
simple |
Use linear (default) or exponential discounting |
verbose |
should verbose logging be used |
returns the value of the cashflow at period 0
christian bitter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.