Function wrangles results to expected formats. List element entry results is split into market risk results for company and portfolio level.

wrangle_results(results_list, sensitivity_analysis_vars, risk_type)

Arguments

results_list

A list of results.

sensitivity_analysis_vars

String vector holding names of iteration arguments.

risk_type

String that is either lrisk or trisk.

Value

A list of wrangled results.