Description Usage Arguments Examples
View source: R/discount_cashflow.R
This function discounts a cash flow with the interest and return the net present value (NPV). The function assumes
that the first period of df
is period zero in the npv calculation, thus the cash flows in this period is not
discounted.
1 | discount_cashflow(df, cf, rate, period)
|
df |
Data frame with cash flow, interest rate and period |
cf |
Cash flow |
rate |
Interest rate |
period |
Period, e.g. year. |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.