Skip to contents

save_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)

Arguments

x

damage function

destination

character

output_file

character

Value

Path of the output file.

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"