
Update French national damage functions
update_damage_function.Rdupdate_damage_dwelling() operates all operations to update French national
damage function for dwelling
Arguments
- asset
character, which type of asset should be updated.
- year
integer, final year for update.
- origin
character, path to damage function to be updated. Can be a keyword to donwload "official" damage functions. See details. Default to NULL.
- destination
character, path where updated damage function will be saved.
- output_file
character, name of the output file.
Details
origin parameter allows to use the damage function available internally
within the library, the official damage functions provided bythe French
Ministry of the Environment, as well as those available on a repository
maintained by INRAE, which mirror the former
Examples
# Use of default options → internal official damage functions
update_damage_function("dwelling")
#> - Processing 001710986...
#> done in 0.32 secs
#> - Processing 011818120...
#> done in 0.25 secs
#> Damage function saved at: /tmp/Rtmpa6gxKq/dwelling_2026-06-18.xlsx
update_damage_function("activity")
#> - Processing 001710986...
#> done in 0.16 secs
#> - Processing 011818120...
#> done in 0.19 secs
#> Damage function saved at: /tmp/Rtmpa6gxKq/activity_2026-06-18.xlsx
update_damage_function("public")
#> - Processing 001710986...
#> done in 0.20 secs
#> Damage function saved at: /tmp/Rtmpa6gxKq/public_2026-06-18.xlsx
update_damage_function("sewage")
#> - Processing 001711007...
#> done in 0.23 secs
#> Damage function saved at: /tmp/Rtmpa6gxKq/sewage_2026-06-18.xlsx