Description Usage Arguments Value Author(s) Examples
Extract HAZUS damage functions for specified function type
1 2 | extract_hazus_functions(func_type = "depth",
long_format = TRUE)
|
func_type |
Flood damage or depreciation function type. Choose one of depth (depth-damage functions), velocity (velocity-depth-damage functions), ag (damage functions for agriculture, based on duration of flooding), bridge (damage function for bridges based on the severity of the flood) or deprec (depreciation with age). |
long_format |
Logical flag to indicate whether raw data is desired or in a format suited for plotting using ggplot2. Damage function data from HAZUS are typically in the wide format. |
data frame, the number of rows and columns depend on the first argument of the function.
Gopi Goteti
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # depth-damage functions
fl_dept <- extract_hazus_functions()
# depth-damage functions, raw data only
fl_dept <- extract_hazus_functions(long_format = FALSE)
# velocity-depth-damage functions
fl_velo <- extract_hazus_functions(func_type = "velocity")
# agriculture damage functions
fl_agri <- extract_hazus_functions(func_type = "ag")
# bridge damage functions
fl_bridge <- extract_hazus_functions(func_type = "bridge")
# depreciation functions
fl_depr <- extract_hazus_functions(func_type = "deprec")
# columns names of all flood damage functions
lapply(ls(pattern = "fl_"), FUN = function(x) colnames(get(x)))
# flood occupancy types and description
data(haz_fl_occ)
head(haz_fl_occ)
|
[[1]]
[1] "Crop" "FunctionSource" "JulianDay" "loss_type"
[5] "damage"
[[2]]
[1] "BridgeDmgFnId" "Occupancy" "Source" "Description"
[5] "ret_period" "damage"
[[3]]
[1] "Age" "Occupancy" "deprec"
[[4]]
[1] "Occupancy" "DmgFnId" "Source" "Description" "ft04m"
[6] "ft03m" "ft02m" "ft01m" "ft00" "ft01"
[11] "ft02" "ft03" "ft04" "ft05" "ft06"
[16] "ft07" "ft08" "ft09" "ft10" "ft11"
[21] "ft12" "ft13" "ft14" "ft15" "ft16"
[26] "ft17" "ft18" "ft19" "ft20" "ft21"
[31] "ft22" "ft23" "ft24" "Comment" "ft00_5"
[36] "ft01_5" "ft02_5" "ft03_5" "ft04_5" "ft05_5"
[41] "ft06_5" "ft07_5" "ft08_5" "ft09_5" "ft10_5"
[46] "ft11_5" "ft12_5" "ft13_5" "Source_Table" "Occupy_Class"
[51] "Cover_Class"
[[5]]
[1] "struc_type" "num_story" "vel" "dep"
Occupy_Class Occupancy Occ_Desc1 Occ_Desc2 SIC_code
1 RES RES1 Residential Single Family Dwelling
2 RES RES2 Residential Mobile Home
3 RES RES3A Residential Multi Family Dwelling Duplex
4 RES RES3B Residential Multi Family Dwelling 3-4 Units
5 RES RES3C Residential Multi Family Dwelling 5-9 Units
6 RES RES3D Residential Multi Family Dwelling 10-19 Units
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.