Skip to contents

Writes the yearly and monthly results from ROTH_C() to CSV (default) or Excel files.

Usage

EXPORT_ROTHC_RES(res, output.path = "./data_out/", op.xlsx = FALSE)

Arguments

res

The list returned by ROTH_C() (must contain output_years and output_months; output_extra is also written when op.xlsx is FALSE).

output.path

Directory (with trailing slash) to write the result files into. Default "./data_out/".

op.xlsx

If TRUE, write year_results.xlsx/ month_results.xlsx via openxlsx::write.xlsx() instead of CSV.

Value

Invisibly NULL; called for its side effect of writing files (progress messages are printed to the console).

See also