Skip to contents

Use this function to re-calculate risk scores and risk profile

Usage

recalc_risk_scores(riskdata_results, update_comments)

Arguments

riskdata_results

- path to riskdata_results toy dataset

update_comments

notes explaining why score recalculated

Details

Use cases: if the weighting profile and/or risk profile thresholds have changed and the risk metrics have not changed, then use this function to re-calculate the risk scores and profile without running the whole risk assessment process again

Examples

riskdata_results <- system.file("test-data", "riskdata_results_slim.csv", 
package = "risk.assessr")
update_comments <- "recalc scores example"

recalc_example <- recalc_risk_scores(riskdata_results, update_comments)
#> User defined weights used
#> User defined weights used
#> Risk profile calculated
#> Risk profile calculated