npv | R Documentation |
This R function will calculate NPV for the given cashflow streams.
npv(cf_t0, cf, times, r)
cf_t0 |
Cashflows at time 0 |
cf |
Cashflow vector |
times |
Cashflow times |
r |
rate of return |
Returns the NPV for the given cashflow streams
npv(cf_t0 = -1000 , cf = c(100,300) , times = c(3,2) , r = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.