`aggregate_damage()` reads combined damage functions and aggregates damage accordingly to files in `hazard_agg`.

aggregate_damage(
  path,
  damage_origin = "RPG_total",
  hazard_agg = "hazard.00",
  retrieve = TRUE
)

Arguments

path

list, describing where to find useful paths.

damage_origin

character indicating which type of damage should be aggregated. The damage functions to aggregate should be found in one of `list.files(path[["output"]][["combine"]])` after having called `combine_damaging()`. Default to "RPG_total".

hazard_agg

character indicating the name of the hazard folder which contains the aggregated hazard parameters. Default to "hazard.00" used for the french national damage functions.

retrieve

logical indicating whether the result should be returned. Default to TRUE.

Value

data.frame of damage aggregated.