| calc_npv | R Documentation |
Calculates the net present value of a series of cash flows.
calc_npv(rate, cashflows)
rate |
Discount rate per period (decimal). |
cashflows |
Vector of cash flows (first is typically negative investment). |
Net present value.
calc_npv(rate = 0.1, cashflows = c(-1000, 300, 400, 500))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.