TaxFoundation / capital-cost-recovery

Other
3 stars 3 forks source link

[WIP] Update to paths, more flexibility with discount rates #11

Closed jdebacker closed 1 year ago

jdebacker commented 2 years ago

This PR attempts to do two things:

  1. Revert to the use of relative paths so that anyone can run the cost from their machine, regardless of where they download the repository files.
  2. Create a constant that represents the discount rate (which was currently hard coded in each function call at the value of 0.075). This makes it a bit easier if someone would like to change that value in their simulations.

I will remove the WIP label when I get the testing failure to pass. But the script is successfully running on my machine from both the command line and RStudio.