View source: R/simulate_from_Excel.r
simulatefromexcel | R Documentation |
This functions reads data from the first two tabs of an Excel workbook. The first is expected to contain general information on the simulation and the second is expected to contain information on the cash flows.
simulatefromexcel(xlsxfilename)
xlsxfilename |
File name including path |
Columns in the first tab might include: description, nTrials, startValue, lengthType, length, seed, defaultInflation, ror, stdDev, targetValue, targetValueIsReal, stockWt, nConsecMonths, retAdj, minDate, maxDate, overrideInflation, asOfDate, returnGeneratorMethod, p1name, p1init, p1birthdate, p1gender, p1retage, p1mortfactor, p1mortadjyears, p2name, p2init, p2birthdate, p2gender, p2retage, p2mortfactor, p2mortadjyears.
Columns in the second tab should include: simulation, description, starttype, start, endtype, end, type, amount, defaultInflationAdj, inflation.
List containing lists for each simulation in the file.
## Not run: simulatefromexcel(paste0(testthat::test_path(),"/data/siminput.xlsx"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.