This project examines the storm events recorded in the NOAA Storm Events Database for the United States during January-August 2026. The analysis explores event frequency, population health impacts, geographic distribution, monthly patterns, and economic damage using R. Thunderstorm wind was the most frequently recorded event type, while heat-related events accounted for a particularly high numbers of injuries and deaths. Storm event frequency varied across geographic areas and months, with different event types showing distinct seasonal patterns. Wildfire, flash flood, and hail caused the greatest combined recorded property and crop damage, while frost/freeze had the highest recorded crop damage.
Three datasets were downloaded from the NOAA Storm Events Database:
event details, fatalities, and locations. The three gz files were
unzipped, and the resulting CSV files are stored in the project’s
data/raw/ directory. The analysis uses several packages for
data importing, data manipulation, and creating visualizations. The
following code checks whether required packages are installed and
installs any that are missing before loading them.
# install required packages (if necessary)
required_packages <- c("dplyr", "readr", "ggplot2", "patchwork", "tidyr", "scales")
for (package in required_packages) {
if (!requireNamespace(package, quietly = TRUE)) {
install.packages(package)
}
}
# load required packages
library(dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
library(readr)
library(ggplot2)
library(patchwork)
library(tidyr)
library(scales)
##
## Attaching package: 'scales'
## The following object is masked from 'package:readr':
##
## col_factor
# display all R code in the knitted document
knitr::opts_chunk$set(echo = TRUE)
Each file is loaded directly into R using the readr
package after defining each file path.
# define the folder path
folder_path <- "data/raw"
# define file paths for the unzipped CSV files
details_file <- file.path(folder_path,
"StormEvents_details-ftp_v1.0_d2026_c20261119.csv")
fatalities_file <- file.path(folder_path,
"StormEvents_fatalities-ftp_v1.0_d2026_c20261119.csv")
locations_file <- file.path(folder_path,
"StormEvents_locations-ftp_v1.0_d2026_c20261119.csv")
# load the CSV into R
details <- read_csv(details_file, show_col_types = FALSE)
fatalities <- read_csv(fatalities_file, show_col_types = FALSE)
locations <- read_csv(locations_file, show_col_types = FALSE)
The dimensions of each dataset are examined to understand the number of observations and variables available. The datasets are then examined for missing values to identify incomplete information that may need further investigation.
# check the data
dim(details)
## [1] 63151 51
dim(fatalities)
## [1] 555 11
dim(locations)
## [1] 13988 11
# examine missing values
missing_data <- function(data) {
data.frame(
variable = names(data),
missing_count = colSums(is.na(data))
) %>%
arrange(desc(missing_count))
}
details_missing <- missing_data(details)
fatalities_missing <- missing_data(fatalities)
locations_missing <- missing_data(locations)
# display the 10 variables with the most missing values
head(details_missing, 10)
## variable missing_count
## CATEGORY CATEGORY 63143
## TOR_OTHER_WFO TOR_OTHER_WFO 62942
## TOR_OTHER_CZ_STATE TOR_OTHER_CZ_STATE 62942
## TOR_OTHER_CZ_FIPS TOR_OTHER_CZ_FIPS 62942
## TOR_OTHER_CZ_NAME TOR_OTHER_CZ_NAME 62942
## TOR_F_SCALE TOR_F_SCALE 61757
## TOR_LENGTH TOR_LENGTH 61757
## TOR_WIDTH TOR_WIDTH 61757
## FLOOD_CAUSE FLOOD_CAUSE 57450
## MAGNITUDE_TYPE MAGNITUDE_TYPE 34702
head(fatalities_missing, 10)
## variable missing_count
## FATALITY_AGE FATALITY_AGE 106
## FATALITY_SEX FATALITY_SEX 62
## FAT_YEARMONTH FAT_YEARMONTH 0
## FAT_DAY FAT_DAY 0
## FAT_TIME FAT_TIME 0
## FATALITY_ID FATALITY_ID 0
## EVENT_ID EVENT_ID 0
## FATALITY_TYPE FATALITY_TYPE 0
## FATALITY_DATE FATALITY_DATE 0
## FATALITY_LOCATION FATALITY_LOCATION 0
head(locations_missing, 10)
## variable missing_count
## YEARMONTH YEARMONTH 0
## EPISODE_ID EPISODE_ID 0
## EVENT_ID EVENT_ID 0
## LOCATION_INDEX LOCATION_INDEX 0
## RANGE RANGE 0
## AZIMUTH AZIMUTH 0
## LOCATION LOCATION 0
## LATITUDE LATITUDE 0
## LONGITUDE LONGITUDE 0
## LAT2 LAT2 0
The event details dataset contains 63,151 observations and 53 variables. The fatalities dataset contains 555 observations and 11 variables, while the locations dataset contains 13,988 observations and 11 variables. The missing-value examination revealed that the event details dataset contains several variables with substantial missing information. The locations dataset has no missing values in the first ten variables displayed, so the missing data is more prevalent in certain event-specific variables.
The NOAA dataset contains several variables that are specific to
certain types of storm events. Therefore, missing values do not
necessarily indicate incorrect or incomplete records. To better
understand where these values are recorded, we examine three event type
variables: tornado scale (TOR_F_SCALE), flood cause
(FLOOD_CAUSE), and magnitude (MAGNITUDE).
## tornado
details %>%
group_by(EVENT_TYPE) %>%
summarise(
total_events = n(),
tornado_records = sum(!is.na(TOR_F_SCALE)),
.groups = "drop"
) %>%
filter(tornado_records > 0) %>%
arrange(desc(tornado_records))
## # A tibble: 1 × 3
## EVENT_TYPE total_events tornado_records
## <chr> <int> <int>
## 1 Tornado 1394 1394
## flood
details %>%
group_by(EVENT_TYPE) %>%
summarise(
total_events = n(),
flood_records = sum(!is.na(FLOOD_CAUSE)),
.groups = "drop"
) %>%
filter(flood_records > 0) %>%
arrange(desc(flood_records))
## # A tibble: 3 × 3
## EVENT_TYPE total_events flood_records
## <chr> <int> <int>
## 1 Flash Flood 4339 4339
## 2 Flood 1282 1282
## 3 Debris Flow 80 80
## magnitude
details %>%
group_by(EVENT_TYPE) %>%
summarise(
total_events = n(),
magnitude_records = sum(!is.na(MAGNITUDE)),
.groups = "drop"
) %>%
filter(magnitude_records > 0) %>%
arrange(desc(magnitude_records))
## # A tibble: 8 × 3
## EVENT_TYPE total_events magnitude_records
## <chr> <int> <int>
## 1 Thunderstorm Wind 22419 22419
## 2 Hail 7512 7512
## 3 High Wind 2878 2878
## 4 Marine Thunderstorm Wind 2491 2491
## 5 Strong Wind 603 603
## 6 Marine High Wind 57 57
## 7 Marine Hail 20 20
## 8 Marine Strong Wind 1 1
The examination showed that missing values in these variables were largely related to event type. Tornado scale was recorded for tornado events, flood cause was recorded for flood-related events, and magnitude was recorded for selected wind and hail events. This suggests that many missing values reflect the fact that these measurements do not apply to every type of storm event. Thus, these missing values were retained rather than replaced.
Property and crop damage values are converted from character values to numeric dollar amounts to allow for calculations and comparisons.
# convert damage values to numeric dollars
convert_damage <- function(x) {
multiplier <- case_when(
grepl("K$", x) ~ 1000,
grepl("M$", x) ~ 1000000,
grepl("B$", x) ~ 1000000000,
TRUE ~ NA_real_
)
amount <- as.numeric(sub("[KMB]$", "", x))
amount * multiplier
}
# create numeric damage columns
details <- details %>%
mutate(
PROPERTY_DAMAGE_DOLLARS = convert_damage(DAMAGE_PROPERTY),
CROP_DAMAGE_DOLLARS = convert_damage(DAMAGE_CROPS)
)
# examine converted values
details %>%
select(
DAMAGE_PROPERTY,
PROPERTY_DAMAGE_DOLLARS,
DAMAGE_CROPS,
CROP_DAMAGE_DOLLARS
) %>%
head(15)
## # A tibble: 15 × 4
## DAMAGE_PROPERTY PROPERTY_DAMAGE_DOLLARS DAMAGE_CROPS CROP_DAMAGE_DOLLARS
## <chr> <dbl> <chr> <dbl>
## 1 5.00K 5000 0.00K 0
## 2 0.00K 0 0.00K 0
## 3 0.00K 0 0.00K 0
## 4 0.00K 0 0.00K 0
## 5 0.00K 0 0.00K 0
## 6 0.00K 0 0.00K 0
## 7 0.00K 0 0.00K 0
## 8 0.00K 0 0.00K 0
## 9 0.00K 0 0.00K 0
## 10 0.00K 0 0.00K 0
## 11 0.00K 0 0.00K 0
## 12 0.00K 0 0.00K 0
## 13 <NA> NA <NA> NA
## 14 0.00K 0 0.00K 0
## 15 0.00K 0 0.00K 0
The three datasets are then combined using left joins based on the
event identification number (EVENT_ID). Once combined, the
dataset is saved in the data/processed folder.
# join the three NOAA datasets by EVENT_ID
joined_data <- details %>%
left_join(locations, by = "EVENT_ID") %>%
left_join(fatalities, by = "EVENT_ID", relationship = "many-to-many")
# check the joined dataset
dim(joined_data)
## [1] 68775 73
# save the joined data to a new CSV file
output_file <- file.path("data/processed",
"StormEvents_joined_data.csv")
write_csv(joined_data, output_file)
The resulting joined dataset contains 68,775 observations and 73
variables. Compared with the original event details dataset, the number
of observations increased because some events have multiple associated
location or fatality records. Thus, for our exploratory analysis, we
will use the details dataset to prevent events from being
counted multiple times when each event should only be counted once. The
joined_data dataset can be used when analyzing information
that requires the combined location or fatality records.
This section presents the results of the exploratory data analysis of the 2026 NOAA Storm Events dataset.
The first graph presents a preliminary analysis of the frequency of each storm event type. The ten most frequently recorded event types are identified to determine which types of storms occurred most often in the dataset.
# count the frequency of each storm event type
event_type_summary <- details %>%
count(EVENT_TYPE, name = "total_events", sort = TRUE)
# create a summary of the 10 most frequent event types
top_10_events <- event_type_summary %>%
slice_max(order_by = total_events, n = 10, with_ties = FALSE) %>%
arrange(total_events)
# create a horizontal bar chart
event_type_plot <- ggplot(
top_10_events,
aes(x = total_events,
y = reorder(EVENT_TYPE, total_events)
)) +
geom_col(fill = "lightblue") +
labs(title = "Top 10 Most Frequent Storm Event Types in the United States",
subtitle = "NOAA Storm Events Database, 2026",
x = "Number of Events", y = "Storm Event Type"
) +
theme_minimal()
event_type_plot
Figure 1. Ten most frequently recorded storm event types in the United States during 2026, ranked by the number of recorded events.
The bar chart shows that thunderstorm wind was by far the most frequently recorded storm event type in 2026, with 22,419 records. This was substantially higher than the second most frequent event type, hail, which had 7,512 records. The results show that wind-related events accounted for a large portion of the recorded storm events during the year. However, event frequency does not necessarily indicate the severity or overall impact of an event.
The second analysis examines the population health impacts of storm events by comparing the total number of injuries and deaths associated with each event type. The ten event types with the highest injury totals and the ten with the highest death totals are then identified and compared using side-by-side bar charts.
# calculate total injuries and deaths by storm event type
health_impact <- details %>%
group_by(EVENT_TYPE) %>%
summarise(
total_injuries = sum(INJURIES_DIRECT + INJURIES_INDIRECT,
na.rm = TRUE),
total_deaths = sum(DEATHS_DIRECT + DEATHS_INDIRECT,
na.rm = TRUE),
.groups = "drop"
) %>%
arrange(desc(total_injuries + total_deaths))
print(health_impact)
## # A tibble: 50 × 3
## EVENT_TYPE total_injuries total_deaths
## <chr> <dbl> <dbl>
## 1 Excessive Heat 859 99
## 2 Tornado 285 13
## 3 Thunderstorm Wind 142 31
## 4 Heat 41 100
## 5 Winter Storm 74 30
## 6 Winter Weather 69 19
## 7 Wildfire 40 25
## 8 Flash Flood 28 36
## 9 Rip Current 28 29
## 10 Lightning 40 12
## # ℹ 40 more rows
# top 10 event types by total injuries
top_10_injuries <- health_impact %>%
arrange(desc(total_injuries)) %>%
slice_head(n = 10)
# top 10 event types by total deaths
top_10_deaths <- health_impact %>%
arrange(desc(total_deaths)) %>%
slice_head(n = 10)
# create two plots (one for injury and one for deaths) into one figure
injury_plot <- ggplot(
top_10_injuries,
aes(x = total_injuries,
y = reorder(EVENT_TYPE, total_injuries)
)) +
geom_col(fill = "goldenrod1") +
labs(title = "Top 10 Events by Injuries",
x = "Total Injuries", y = "Event Type") +
theme_minimal()
death_plot <- ggplot(
top_10_deaths,
aes(x = total_deaths,
y = reorder(EVENT_TYPE, total_deaths)
)) +
geom_col(fill = "indianred") +
labs(title = "Top 10 Events by Deaths",
x = "Total Deaths", y = "Event Type") +
theme_minimal()
health_impact_plot <- injury_plot + death_plot +
plot_layout(ncol = 2) +
plot_annotation(
title = "Top 10 Storm Event Types by Population Health Impact",
subtitle = "United States, 2026"
)
health_impact_plot
Figure 2. The ten storm event types associated with the highest numbers of injuries and deaths in the United States during 2026. Injuries and deaths include both direct and indirect impacts.
The results show that excessive heat had the greatest impact on injuries, with 859 reported injuries, substantially higher than tornadoes, which ranked second with 285 injuries. However, heat had the highest number of deaths, with 100, followed closely by excessive heat with 99. These findings demonstrate that the storm event type with the most injuries is not necessarily the event type with the most deaths. Excessive heat and heat together accounted for 900 injuries and 199 deaths. Thus, heat-related events were particularly significant in terms of both injuries and fatalities during 2026, making them the most harmful type of events with respect to population health.
The third visualization examines the geographic distribution of storm events across the United States. The total number of recorded events is calculated for each state to identify areas with the highest event frequency. A heatmap is then used to compare the distribution of the ten most frequently recorded event types across states.
# count storm events by state and event type
state_event_summary <- details %>%
group_by(STATE, EVENT_TYPE) %>%
summarise(
total_events = n(),
.groups = "drop"
)
# calculate total storm events by state
state_totals <- state_event_summary %>%
group_by(STATE) %>%
summarise(
total_events = sum(total_events),
.groups = "drop"
) %>%
arrange(desc(total_events))
print(state_totals, n = 10)
## # A tibble: 66 × 2
## STATE total_events
## <chr> <int>
## 1 TEXAS 4265
## 2 ILLINOIS 3215
## 3 OKLAHOMA 2493
## 4 PENNSYLVANIA 2439
## 5 KANSAS 2224
## 6 OHIO 2154
## 7 WEST VIRGINIA 2043
## 8 SOUTH DAKOTA 1913
## 9 NEW YORK 1890
## 10 VIRGINIA 1865
## # ℹ 56 more rows
# identify top 10 most frequent event types
top_10_event_types <- event_type_summary %>%
slice_head(n = 10)
# filter events for states heatmap
states_heatmap_data <- state_event_summary %>%
filter(EVENT_TYPE %in% top_10_event_types$EVENT_TYPE)
# create a states heatmap
states_heatmap <- ggplot(
states_heatmap_data,
aes(x = STATE,
y = reorder(EVENT_TYPE, total_events),
fill = total_events)
) +
geom_tile(color = "white") +
scale_fill_gradient(low = "plum1",
high = "darkred",
name = "Total Events") +
labs(title = "Storm Event Distribution Across the United States in 2026",
subtitle = "Top 10 event frequencies by state, descending order",
x = "State", y = "Event Type") +
theme_minimal() +
theme(axis.text.x = element_text(
angle = 90,
hjust = 1,
vjust = 0.5,
size = 7
),
axis.text.y = element_text(size = 9)
)
states_heatmap
Figure 3. Geographic distribution of the ten most frequently recorded storm event types across U.S. states and other reporting areas during 2026. Darker colors represent higher event counts.
Texas had the highest number of recorded storm events in 2026, with 4,265 records, followed by Illinois with 3,215 and Oklahoma with 2,493. These results show that storm event frequency varied considerably across geographic areas. The heatmap provides a more detailed comparison of the ten most frequent storm event types across all states. Thunderstorm wind was the most frequently recorded event type nationwide. Texas had relatively high numbers of thunderstorm wind (879), hail (773), and drought (764) events. Pennsylvania recorded the highest number of thunderstorm wind events among these geographic areas, with 1,392 records, closely followed by Illinois with 1,384. Hail was also particularly frequent in Texas (773), Kansas (731), and Oklahoma (546). Flash flood events were more prominent in Pennsylvania (366) and West Virginia (234). In New York, thunderstorm wind was the most frequent event type (791), followed by flash flood (168) and cold/wind chill (156).
The fourth analysis explores how storm event types vary throughout the year. The number of recorded events is summarized by month and event type to identify seasonal patterns. A heatmap is used to compare the monthly frequency of the ten most frequently recorded event types.
# count the number of events for each event type in each month
monthly_event_summary <- details %>%
group_by(MONTH_NAME, EVENT_TYPE) %>%
summarise(
total_events = n(),
.groups = "drop"
)
monthly_event_summary <- monthly_event_summary %>%
mutate(
MONTH_NAME = factor(MONTH_NAME,
levels = month.name)
) %>%
arrange(MONTH_NAME)
# filter events for months heatmap
monthly_heatmap_data <- monthly_event_summary %>%
filter(EVENT_TYPE %in% top_10_event_types$EVENT_TYPE)
# create a months heatmap
months_heatmap <- ggplot(
monthly_heatmap_data,
aes(x = MONTH_NAME,
y = reorder(EVENT_TYPE, total_events),
fill = total_events)
) +
geom_tile(color = "white") +
scale_fill_gradient(low = "plum1",
high = "darkred",
name = "Total Events") +
labs(title = "Monthly Distribution of the Top 10 Storm Event Types",
subtitle = "Event frequency by month (descending order), United States, 2026",
x = "Month", y = "Event Type") +
theme_minimal() +
theme(axis.text.x = element_text(
angle = 45,
hjust = 1
),
axis.text.y = element_text(size = 9)
)
months_heatmap
Figure 4. Monthly distribution of the ten most frequently recorded storm event types during the first eight months of 2026. Darker colors represent higher event counts.
The monthly distribution of storm events reveals several seasonal patterns during the first eight months of 2026. Winter storm and winter weather events were most frequent in January, with 1,460 and 1,032 recorded events, respectively. During the spring, hail events peaked in April with 2,374 records, while high wind events were most frequent in March with 1,175. Summer months showed particularly high numbers of thunderstorm wind events, reaching 5,961 in June and 5,625 in July. Heat-related events were also concentrated during the summer, with excessive heat reaching its highest recorded monthly count of 1,461 in July. Flash flood events also increased during the summer, peaking at 1,340 in July. Thunderstorm wind events decreased from 5,625 in July to 4,345 in August.
The final figure analyzes the economic impact of storm events by comparing property damage and crop damage across event types. Damage amounts are converted into dollar values and summarized to identify which types of storm events caused the greatest recorded economic losses in the United States during 2026. The top two visualizations compare property damage and crop damage, while the bottom chart illustrates the total economic impact of the ten most damaging event types.
# calculate property and crop damage by event type
economic_impact <- details %>%
group_by(EVENT_TYPE) %>%
summarise(
total_property_damage = sum(PROPERTY_DAMAGE_DOLLARS, na.rm = TRUE),
total_crop_damage = sum(CROP_DAMAGE_DOLLARS, na.rm = TRUE),
total_economic_damage = total_property_damage + total_crop_damage,
.groups = "drop"
) %>%
arrange(desc(total_economic_damage))
print(economic_impact)
## # A tibble: 50 × 4
## EVENT_TYPE total_property_damage total_crop_damage total_economic_damage
## <chr> <dbl> <dbl> <dbl>
## 1 Wildfire 1610522600 43088000 1653610600
## 2 Flash Flood 1509043250 11260000 1520303250
## 3 Hail 902895210 11180000 914075210
## 4 Flood 778177100 315100 778492200
## 5 Hurricane 651000000 5000000 656000000
## 6 Tropical Storm 478000000 2000000 480000000
## 7 Tornado 247529500 993000 248522500
## 8 Thunderstorm W… 138462600 5999650 144462250
## 9 Frost/Freeze 0 81404560 81404560
## 10 High Wind 40594200 0 40594200
## # ℹ 40 more rows
# create a bar chart for just property damage
top_10_property_damage <- economic_impact %>%
slice_max(order_by = total_property_damage,
n = 10,
with_ties = FALSE)
property_damage_plot <- ggplot(
top_10_property_damage,
aes(x = total_property_damage,
y = reorder(EVENT_TYPE, total_property_damage))
) +
geom_col(fill = "dodgerblue2") +
scale_x_continuous(labels = scales::label_dollar(
scale = 1e-6, suffix = "M"
)) +
labs(title = "Top 10 Storm Event Types by Property Damage",
x = "Property Damage", y = "Event Type") +
theme_minimal()
# create a bar chart for just crop damage
top_10_crop_damage <- economic_impact %>%
slice_max(order_by = total_crop_damage,
n = 10,
with_ties = FALSE)
crop_damage_plot <- ggplot(
top_10_crop_damage,
aes(x = total_crop_damage,
y = reorder(EVENT_TYPE, total_crop_damage))
) +
geom_col(fill = "goldenrod2") +
scale_x_continuous(labels = scales::label_dollar(
scale = 1e-6, suffix = "M"
)) +
labs(title = "Top 10 Storm Event Types by Crop Damage",
x = "Crop Damage", y = "Event Type") +
theme_minimal()
# select the top 10 event types by total economic damage
top_10_economic <- economic_impact %>%
slice_max(
order_by = total_economic_damage,
n = 10,
with_ties = FALSE
)
# prepare the top 10 economic impact data for visualization
economic_plot_data <- top_10_economic %>%
select(
EVENT_TYPE,
total_property_damage,
total_crop_damage,
total_economic_damage
) %>%
tidyr::pivot_longer(
cols = c(total_property_damage, total_crop_damage),
names_to = "damage_type",
values_to = "damage_amount"
) %>%
mutate(
damage_type = recode(
damage_type,
total_property_damage = "Property Damage",
total_crop_damage = "Crop Damage"
)
)
# create a stacked bar chart of economic damage (combined total)
economic_impact_plot <- ggplot(
economic_plot_data,
aes(x = damage_amount,
y = reorder(EVENT_TYPE, total_economic_damage),
fill = damage_type)
) +
geom_col() +
scale_x_continuous(labels = scales::label_dollar(
scale = 1e-9, suffix = "B"
)) +
scale_fill_manual(
values = c("Property Damage" = "dodgerblue2",
"Crop Damage" = "goldenrod2")
) +
labs(title = "Top 10 Storm Event Types by Economic Damage",
subtitle = "Property and crop damage combined, descending",
x = "Economic Damage", y = "Event Type",
fill = "Damage Type") +
theme_minimal()
# combine the three charts into one figure
combined_economic_plot <- (
property_damage_plot + crop_damage_plot
) / economic_impact_plot +
plot_layout(heights = c(1, 1, 1)) +
plot_annotation(title = "Economic Impact of Storm Events",
subtitle = "Property, crop, and combined damage across the U.S. in 2026")
combined_economic_plot
Figure 5. Property damage, crop damage, and combined economic damage for the ten storm event types with the greatest total recorded economic impact in the United States during 2026. Damage amounts are expressed in U.S. dollars.
Wildfire caused the greatest overall economic damage in the United States during 2026, with approximately 1.654 billion dollars in combined property and crop damage. Flash flood ranked second with about 1.520 billion dollars, followed by hail with approximately 914.1 million dollars. Wildfire had the highest property damage, totaling about 1.611 billion dollars, while flash flood caused about 1.509 billion dollars in property damage. On the other hand, the crop damage results showed a different pattern. Frost/freeze caused the greatest crop damage, totaling approximately 81.4 million dollars, followed by wildfire at 43.1 million dollars. Although frost/freeze had no recorded property damage in the analysis, it had the highest recorded crop damage of all event types. These findings exemplify that different storm events can have different types of economic consequences.