
Save damage function
save_damage_function.Rdsave_damage_function() save damage function as an xls file, and performs some
adjustements in data from the slot "sheet"
Usage
save_damage_function(x, destination = tempdir(), output_file = NULL)Examples
# Save default dwelling damage functions to a temporary directory
dwelling = read_damage_function("dwelling")
save_damage_function(dwelling)
#> Damage function saved at: /tmp/Rtmpa6gxKq/dwelling_2026-06-11.xlsx
#> [1] "/tmp/Rtmpa6gxKq/dwelling_2026-06-11.xlsx"