| ia | R Documentation | 
This R function calculates NPV, EUV, IRR, and payback period for up to 3 different options.
ia(project1 = NA, project2 = NA, project3 = NA, r, cf_t0)
project1 | 
 cashflow for project 1  | 
project2 | 
 cashflow for project 2  | 
project3 | 
 cashflow for project 3  | 
r | 
 nominal interest rate  | 
cf_t0 | 
 cashflow at time 0, True if projects' cashflows vector include initial cashflow or False vice versa.  | 
Returns NPV, EUV, IRR, and discounted payback period for multiple projects
ia(project1 = c(-20, 9),project2 = c(-10, 10), project3 = c(-10, 9),cf_t0 = TRUE, r = 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.