Skip to contents

This helper function returns a character vector of sector names (default) or a data frame of sectors with related information (e.g., associated variants, impact types, etc.), which the user can supply to the run_fredi() sectorList argument.

Usage

get_sectorInfo(description = F, gcmOnly = F, slrOnly = F)

Arguments

description

= FALSE. Logical value indicating whether to include information about each sector. Returns a dataframe if description=TRUE and returns a character vector of sector names if description=FALSE (default).

gcmOnly

= FALSE. Logical value indicating whether to return only sectors with climate impacts modeled using global climate model (GCM) results.

slrOnly

= FALSE. Logical value indicating whether to return only sectors with climate impacts modeled using sea level rise (SLR) scenarios.

Value

  • If description=FALSE (default), outputs a character vector containing the names of sectors available for FrEDI.

  • If description=TRUE, `, outputs a dataframe containing the names of sectors available for FrEDI in one column, with information about the sector model type, variants, impact years, and impact types in the remaining columns.

Details

If description=FALSE (default), this helper function returns a character vector of sector names, which the user can supply to the sectorList argument to run_fredi(). If description=TRUE, get_sectorInfo() returns dataframe of sectors with related information returns a dataframe containing the sectors available for FrEDI along with additional information. Sector names are in the first column, with additional columns for the associated model type ("GCM" or "SLR"), variants, impact years, and impact types in the remaining columns. Variants, impact years, and impact types vary by sector.

Users can specify whether to return only GCM sectors or SLR sectors by setting gcmOnly=TRUE or slrOnly=TRUE, respectively. get_sectorInfo() will return the sectors in the form specified by description (see above).

References

Environmental Protection Agency (EPA). 2021. Technical Documentation on The Framework for Evaluating Damages and Impacts (FrEDI). Technical Report EPA 430-R-21-004, EPA, Washington, DC. Available at https://epa.gov/cira/FrEDI/.

Examples


### Return a character vector with the names of all of the sectors in FrEDI:
get_sectorInfo()
#>  [1] "ATS Temperature-Related Mortality"             
#>  [2] "Asphalt Roads"                                 
#>  [3] "CIL Agriculture"                               
#>  [4] "CIL Crime"                                     
#>  [5] "CIL Temperature-Related Mortality"             
#>  [6] "Climate-Driven Changes in Air Quality"         
#>  [7] "Coastal Properties"                            
#>  [8] "Electricity Demand and Supply"                 
#>  [9] "Electricity Transmission and Distribution"     
#> [10] "Extreme Temperature"                           
#> [11] "Inland Flooding"                               
#> [12] "Labor"                                         
#> [13] "Marine Fisheries"                              
#> [14] "Rail"                                          
#> [15] "Roads"                                         
#> [16] "Southwest Dust"                                
#> [17] "Suicide"                                       
#> [18] "Transportation Impacts from High Tide Flooding"
#> [19] "Urban Drainage"                                
#> [20] "Valley Fever"                                  
#> [21] "Vibriosis"                                     
#> [22] "Water Quality"                                 
#> [23] "Wildfire"                                      
#> [24] "Wind Damage"                                   
#> [25] "Winter Recreation"                             

### Return a dataframe of all of the sectors in FrEDI (sector names and additional information)
get_sectorInfo(description=T, gcmOnly=T)
#>                                       sector include model_type byState
#> 3          ATS Temperature-Related Mortality       1        GCM       1
#> 2                              Asphalt Roads       1        GCM       1
#> 4                            CIL Agriculture       1        GCM       1
#> 5                                  CIL Crime       1        GCM       1
#> 6          CIL Temperature-Related Mortality       1        GCM       1
#> 1      Climate-Driven Changes in Air Quality       1        GCM       1
#> 8              Electricity Demand and Supply       1        GCM       1
#> 9  Electricity Transmission and Distribution       1        GCM       1
#> 10                       Extreme Temperature       1        GCM       1
#> 12                           Inland Flooding       1        GCM       1
#> 13                                     Labor       1        GCM       1
#> 14                          Marine Fisheries       1        GCM       1
#> 16                                      Rail       1        GCM       1
#> 17                                     Roads       1        GCM       1
#> 18                            Southwest Dust       1        GCM       1
#> 15                                   Suicide       1        GCM       1
#> 19                            Urban Drainage       1        GCM       1
#> 20                              Valley Fever       1        GCM       1
#> 21                                 Vibriosis       1        GCM       1
#> 22                             Water Quality       1        GCM       1
#> 23                                  Wildfire       1        GCM       1
#> 24                               Wind Damage       1        GCM       1
#> 25                         Winter Recreation       1        GCM       1
#>                                                               variants
#> 3              Mean, Low Confidence Interval, High Confidence Interval
#> 2                                                                  N/A
#> 4                    With CO2 Fertilization, Without CO2 Fertilization
#> 5                                                                  N/A
#> 6            Median, Low Confidence Interval, High Confidence Interval
#> 1                                       2011 Emissions, 2040 Emissions
#> 8                                                                  N/A
#> 9  No Additional Adaptation, Proactive Adaptation, Reactive Adaptation
#> 10                                Adaptation, No Additional Adaptation
#> 12                                                                 N/A
#> 13                                                                 N/A
#> 14                                                                 N/A
#> 16 No Additional Adaptation, Proactive Adaptation, Reactive Adaptation
#> 17 No Additional Adaptation, Proactive Adaptation, Reactive Adaptation
#> 18                                                                 N/A
#> 15                                                                 N/A
#> 19                                                                 N/A
#> 20                                                                 N/A
#> 21                                                                 N/A
#> 22                                                                 N/A
#> 23                                                                 N/A
#> 24                                                                 N/A
#> 25                                                                 N/A
#>    impactYears
#> 3          N/A
#> 2          N/A
#> 4          N/A
#> 5          N/A
#> 6          N/A
#> 1          N/A
#> 8          N/A
#> 9          N/A
#> 10  2010, 2090
#> 12         N/A
#> 13         N/A
#> 14         N/A
#> 16         N/A
#> 17         N/A
#> 18  2010, 2090
#> 15         N/A
#> 19         N/A
#> 20         N/A
#> 21         N/A
#> 22         N/A
#> 23         N/A
#> 24         N/A
#> 25  2010, 2090
#>                                                                                   impactTypes
#> 3                                                                                         N/A
#> 2                                                                                         N/A
#> 4                                                               Cotton, Maize, Soybean, Wheat
#> 5                                                                           Property, Violent
#> 6                                                                                         N/A
#> 1                                                                                Ozone, PM2.5
#> 8                                                                                         N/A
#> 9                                                                                         N/A
#> 10                                                                                  Cold, Hot
#> 12                                                                                        N/A
#> 13                                                                                        N/A
#> 14                                                                                        N/A
#> 16                                                                                        N/A
#> 17                                                                                        N/A
#> 18 Acute Myocardial Infarction, All Cardiovascular, All Mortality, All Respiratory, Asthma ER
#> 15                                                                                        N/A
#> 19                                                                                        N/A
#> 20                                                           Lost Wages, Morbidity, Mortality
#> 21                                                  Direct Medical Cost, Lost Days, Mortality
#> 22                                                                                        N/A
#> 23                                                       Morbidity, Mortality, Response Costs
#> 24                                                                                        N/A
#> 25                                          Alpine Skiing, Cross-Country Skiing, Snowmobiling

### Return a character vector with only the names of the temperature-driven sectors:
get_sectorInfo(gcmOnly=T)
#>  [1] "ATS Temperature-Related Mortality"        
#>  [2] "Asphalt Roads"                            
#>  [3] "CIL Agriculture"                          
#>  [4] "CIL Crime"                                
#>  [5] "CIL Temperature-Related Mortality"        
#>  [6] "Climate-Driven Changes in Air Quality"    
#>  [7] "Electricity Demand and Supply"            
#>  [8] "Electricity Transmission and Distribution"
#>  [9] "Extreme Temperature"                      
#> [10] "Inland Flooding"                          
#> [11] "Labor"                                    
#> [12] "Marine Fisheries"                         
#> [13] "Rail"                                     
#> [14] "Roads"                                    
#> [15] "Southwest Dust"                           
#> [16] "Suicide"                                  
#> [17] "Urban Drainage"                           
#> [18] "Valley Fever"                             
#> [19] "Vibriosis"                                
#> [20] "Water Quality"                            
#> [21] "Wildfire"                                 
#> [22] "Wind Damage"                              
#> [23] "Winter Recreation"                        

### Run FrEDI for only the temperature-driven sectors and view results:
df_x <- run_fredi(sectorList=get_sectorInfo(gcmOnly=T))
#> Checking input values...
#> 	No temperature scenario provided...using default temperature scenario...
#> 	Creating SLR scenario from temperature scenario...
#> 	No GDP scenario provided...Using default GDP scenario...
#> 	Creating population scenario from defaults...
#> Updating scalars...
#> Calculating impacts...
#> Formatting results...
#> 
#> Finished.