calc_npv | R Documentation |
Net Present Value
calc_npv(cf, r, c0 = 0)
cf |
Numeric. Cash flow for each period. |
r |
Numeric. Cost of capital. |
c0 |
Numeric. Initial investment. Default 0. |
Rate of return.
cf <- rep(25000, 60) npv <- calc_npv(cf, 0.0064, 1000000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.