Introduction to R for Finance
Lore Dirick
Manager of Data Science Curriculum at Flatiron School
82.64 = 100 * (1.10) ^ -2
present_value <- cash_flow * (1 + interest / 100) ^ -periods
cash_flow <- 100
interest <- 10
periods <- 2
present_value <- cash_flow * (1 + interest / 100) ^ -periods
present_value
82.64463
Introduction to R for Finance