This report examines NOAA storm event records for 2024 in the 50 US states and Washington, DC. It joins the details, locations, and fatalities files, then retains one record per event for the summaries. Direct and indirect health effects are included, with deaths and injuries reported separately. Excessive Heat has the most reported deaths (253), while Tornado has the most reported injuries (658). Texas Hail has the largest state/event-type count, with 1,588 recorded event IDs. The two most frequently recorded types, Thunderstorm Wind and Hail, both peak in May. Hurricane (Typhoon) has the largest combined recorded property and crop loss estimate, approximately $6.81 billion. Missing damage estimates are left unknown, so the loss totals describe available estimates only. These findings describe one year of reported events rather than population-adjusted risk or complete economic costs.
The analysis begins with the three original NOAA CSV files,
distributed as gzip-compressed .csv.gz files.
read_csv() decompresses them while reading, so no
preprocessing outside this document is needed. All three files contain
2024 events and share the creation date November 19,
2026. The exact filenames are fixed below and the project
includes copies of these raw files, so later NOAA revisions do not
silently change this analysis. The download links were checked on
November 30, 2026.
knitr::opts_chunk$set(echo = TRUE, message = FALSE, warning = FALSE,
fig.width = 12, fig.height = 6, fig.align = "center")
# I loaded the packages and create folders for the data and results.
library(dplyr)
library(readr)
folder_path <- file.path("data", "noaa_2024")
dir.create(folder_path, recursive = TRUE, showWarnings = FALSE)
dir.create("results", showWarnings = FALSE)
# I used three files for 2024 that have the same creation date.
# I kept these filenames so I could use the same data again later.
base_url <- "https://www.ncei.noaa.gov/pub/data/swdi/stormevents/csvfiles/"
details_name <- "StormEvents_details-ftp_v1.0_d2024_c20261119.csv.gz"
fatalities_name <- "StormEvents_fatalities-ftp_v1.0_d2024_c20261119.csv.gz"
locations_name <- "StormEvents_locations-ftp_v1.0_d2024_c20261119.csv.gz"
details_file <- file.path(folder_path, details_name)
fatalities_file <- file.path(folder_path, fatalities_name)
locations_file <- file.path(folder_path, locations_name)
if (!file.exists(details_file)) {
download.file(paste0(base_url, details_name), details_file, mode = "wb")
}
if (!file.exists(fatalities_file)) {
download.file(paste0(base_url, fatalities_name), fatalities_file, mode = "wb")
}
if (!file.exists(locations_file)) {
download.file(paste0(base_url, locations_name), locations_file, mode = "wb")
}
# I read the compressed files directly with read_csv().
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)
source_sizes <- data.frame(
File = c("Details", "Fatalities", "Locations"),
Rows = c(nrow(details), nrow(fatalities), nrow(locations))
)
print(source_sizes)
## File Rows
## 1 Details 69802
## 2 Fatalities 1142
## 3 Locations 40258
The two left joins below follow the assignment’s code and retain
details records without a matching location or fatality entry. The
output StormEvents_joined_data.csv preserves the full
joined data. A single event can have multiple location rows and multiple
fatality rows, so joining can produce multiple rows for the same event.
Adding the repeated event-level death or injury totals would overstate
the results. After checking that the details file has unique event IDs,
I therefore retain one joined row per EVENT_ID and only the
details fields required for analysis. The individual fatality rows are
not added to the deaths already reported in the details file.
For consistent state comparisons, all four questions use the 50 states and Washington, DC. NOAA’s separate marine areas and US territories are excluded from this scope. An event ID is a reported event record, not necessarily an entire storm system, since a storm episode can contain multiple events.
# I joined the three files using EVENT_ID, as shown in the assignment.
joined_data <- details %>%
left_join(locations, by = "EVENT_ID") %>%
left_join(fatalities, by = "EVENT_ID")
write_csv(joined_data, "StormEvents_joined_data.csv")
# I kept one row per event so I did not count the same totals twice.
# I did this because the joins could give an event more than one row.
if (anyDuplicated(details$EVENT_ID) > 0) {
stop("The details file has repeated EVENT_ID values. Check before continuing.")
}
events <- joined_data[!duplicated(joined_data$EVENT_ID), ]
# I kept the columns I need for the four questions.
events <- events %>%
select(EVENT_ID, STATE, EVENT_TYPE, MONTH_NAME,
INJURIES_DIRECT, INJURIES_INDIRECT,
DEATHS_DIRECT, DEATHS_INDIRECT,
DAMAGE_PROPERTY, DAMAGE_CROPS)
# I focused on the 50 states and Washington, DC throughout the analysis.
us_states <- c(toupper(state.name), "DISTRICT OF COLUMBIA")
analysis_data <- events %>% filter(STATE %in% us_states)
join_check <- data.frame(
Stage = c("Raw details", "Joined rows", "Unique events after joining",
"Events in 50 states and DC", "Excluded area records"),
Rows = c(nrow(details), nrow(joined_data), nrow(events),
nrow(analysis_data), nrow(events) - nrow(analysis_data))
)
print(join_check)
## Stage Rows
## 1 Raw details 69802
## 2 Joined rows 85745
## 3 Unique events after joining 69802
## 4 Events in 50 states and DC 66388
## 5 Excluded area records 3414
Deaths and injuries each include their direct and indirect counts
from the details file. I check the key grouping and health fields before
calculating totals and stop if these are missing. Months are ordered
from January to December using the event’s recorded
MONTH_NAME. This assigns an event to its recorded month
rather than distributing a long event across all months it overlaps.
Property and crop damage are converted to US dollars using the
recorded suffixes: K means a thousand, M a
million, and B a billion. A recorded zero remains zero; a
blank estimate remains missing. For the economic comparison, I sum the
available property and crop estimates separately and then combine those
recorded totals. Missing estimates contribute no known amount to these
sums, so these are incomplete recorded losses, not estimates of the
missing costs. The numbers of missing estimates are reported alongside
the damage ranking.
# I checked for missing values before working out the totals.
missing_check <- data.frame(
Field = c("STATE", "EVENT_TYPE", "MONTH_NAME", "INJURIES_DIRECT",
"INJURIES_INDIRECT", "DEATHS_DIRECT", "DEATHS_INDIRECT",
"DAMAGE_PROPERTY", "DAMAGE_CROPS"),
Missing = c(sum(is.na(analysis_data$STATE)),
sum(is.na(analysis_data$EVENT_TYPE)),
sum(is.na(analysis_data$MONTH_NAME)),
sum(is.na(analysis_data$INJURIES_DIRECT)),
sum(is.na(analysis_data$INJURIES_INDIRECT)),
sum(is.na(analysis_data$DEATHS_DIRECT)),
sum(is.na(analysis_data$DEATHS_INDIRECT)),
sum(is.na(analysis_data$DAMAGE_PROPERTY)),
sum(is.na(analysis_data$DAMAGE_CROPS)))
)
print(missing_check)
## Field Missing
## 1 STATE 0
## 2 EVENT_TYPE 0
## 3 MONTH_NAME 0
## 4 INJURIES_DIRECT 0
## 5 INJURIES_INDIRECT 0
## 6 DEATHS_DIRECT 0
## 7 DEATHS_INDIRECT 0
## 8 DAMAGE_PROPERTY 14305
## 9 DAMAGE_CROPS 14759
if (any(missing_check$Missing[1:7] > 0)) {
stop("A key health or grouping field is missing. Review before summarizing.")
}
# I added direct and indirect deaths together, and did the same for injuries.
analysis_data <- analysis_data %>%
mutate(TOTAL_DEATHS = DEATHS_DIRECT + DEATHS_INDIRECT,
TOTAL_INJURIES = INJURIES_DIRECT + INJURIES_INDIRECT)
# I put the months in order from January to December.
analysis_data$MONTH_NAME <- factor(analysis_data$MONTH_NAME,
levels = month.name, ordered = TRUE)
if (any(is.na(analysis_data$MONTH_NAME))) {
stop("An unexpected month name was found.")
}
# I converted property damage into dollars. K, M, and B stand for
# thousand, million, and billion.
property_text <- toupper(trimws(analysis_data$DAMAGE_PROPERTY))
property_multiplier <- rep(1, length(property_text))
property_multiplier[grepl("K$", property_text)] <- 1000
property_multiplier[grepl("M$", property_text)] <- 1000000
property_multiplier[grepl("B$", property_text)] <- 1000000000
analysis_data$PROPERTY_DOLLARS <- as.numeric(
gsub("[KMB]$", "", property_text)
) * property_multiplier
# I did the same for crop damage and left missing amounts as NA.
crop_text <- toupper(trimws(analysis_data$DAMAGE_CROPS))
crop_multiplier <- rep(1, length(crop_text))
crop_multiplier[grepl("K$", crop_text)] <- 1000
crop_multiplier[grepl("M$", crop_text)] <- 1000000
crop_multiplier[grepl("B$", crop_text)] <- 1000000000
analysis_data$CROP_DOLLARS <- as.numeric(
gsub("[KMB]$", "", crop_text)
) * crop_multiplier
# I checked that the conversion worked for every amount that was recorded.
if (any(!is.na(property_text) & is.na(analysis_data$PROPERTY_DOLLARS)) ||
any(!is.na(crop_text) & is.na(analysis_data$CROP_DOLLARS))) {
stop("An unexpected damage format was found.")
}
# Question 1: I compared the reported deaths and injuries for each event type.
health_summary <- analysis_data %>%
group_by(EVENT_TYPE) %>%
summarise(EVENTS = n(),
DEATHS = sum(TOTAL_DEATHS),
INJURIES = sum(TOTAL_INJURIES), .groups = "drop")
death_ranking <- health_summary %>% arrange(desc(DEATHS), EVENT_TYPE)
injury_ranking <- health_summary %>% arrange(desc(INJURIES), EVENT_TYPE)
write_csv(death_ranking, file.path("results", "health_by_event.csv"))
Among the 66,388 included event IDs, the dataset reports 1,110 deaths and 1,794 injuries. Excessive Heat has the most reported deaths (253), while Tornado has the most reported injuries (658). These different rankings show why it is useful to keep the two measures separate.
knitr::kable(head(death_ranking, 10),
caption = "Table 1. Event types ranked by reported deaths; injuries are shown separately.")
| EVENT_TYPE | EVENTS | DEATHS | INJURIES |
|---|---|---|---|
| Excessive Heat | 2488 | 253 | 100 |
| Heat | 3171 | 219 | 173 |
| Flash Flood | 4459 | 116 | 10 |
| Tropical Storm | 513 | 78 | 12 |
| Thunderstorm Wind | 19898 | 53 | 161 |
| Tornado | 2137 | 53 | 658 |
| Rip Current | 48 | 42 | 17 |
| Cold/Wind Chill | 741 | 39 | 0 |
| Flood | 2262 | 35 | 0 |
| Winter Weather | 3557 | 25 | 87 |
# I showed deaths and injuries in separate charts to make them easier to compare.
par(mfrow = c(1, 2), mar = c(5, 10, 4, 1))
death_plot <- death_ranking[10:1, ]
barplot(death_plot$DEATHS, names.arg = death_plot$EVENT_TYPE,
horiz = TRUE, las = 1, col = "#B54D45", border = NA,
cex.names = 0.8, xlab = "Reported deaths",
main = "Ten event types with most deaths")
injury_plot <- injury_ranking[10:1, ]
barplot(injury_plot$INJURIES, names.arg = injury_plot$EVENT_TYPE,
horiz = TRUE, las = 1, col = "#326A91", border = NA,
cex.names = 0.8, xlab = "Reported injuries",
main = "Ten event types with most injuries")
Figure 1. The ten event types with the most reported deaths and injuries, including direct and indirect effects. Each event ID is counted once.
par(mfrow = c(1, 1))
# Question 2: I found the most common event types in each state.
state_events <- analysis_data %>%
group_by(STATE, EVENT_TYPE) %>%
summarise(EVENTS = n(), .groups = "drop")
# I kept both event types when they had the same highest count.
state_leaders <- state_events %>%
group_by(STATE) %>%
filter(EVENTS == max(EVENTS)) %>%
ungroup() %>% arrange(STATE, EVENT_TYPE)
state_pair_ranking <- state_events %>% arrange(desc(EVENTS), STATE, EVENT_TYPE)
write_csv(state_events, file.path("results", "events_by_state_and_type.csv"))
write_csv(state_leaders, file.path("results", "most_common_type_by_state.csv"))
The largest state/event-type count is Hail in Texas, with 1,588 recorded event IDs. The table gives the most frequently recorded type for each state and DC, retaining ties. These are counts of reported records, so differences in state size, exposure, and reporting can affect the comparison. A higher count does not by itself mean a greater risk to an individual resident.
knitr::kable(state_leaders,
caption = "Table 2. Most frequently recorded event type in each state and DC; ties retained.")
| STATE | EVENT_TYPE | EVENTS |
|---|---|---|
| ALABAMA | Thunderstorm Wind | 569 |
| ALASKA | Blizzard | 85 |
| ARIZONA | Thunderstorm Wind | 174 |
| ARKANSAS | Thunderstorm Wind | 329 |
| CALIFORNIA | High Wind | 583 |
| COLORADO | Heavy Snow | 439 |
| CONNECTICUT | Thunderstorm Wind | 128 |
| DELAWARE | Thunderstorm Wind | 21 |
| DISTRICT OF COLUMBIA | Thunderstorm Wind | 11 |
| FLORIDA | Thunderstorm Wind | 475 |
| GEORGIA | Thunderstorm Wind | 1002 |
| HAWAII | High Surf | 77 |
| IDAHO | Thunderstorm Wind | 261 |
| ILLINOIS | Thunderstorm Wind | 959 |
| INDIANA | Thunderstorm Wind | 426 |
| IOWA | Thunderstorm Wind | 659 |
| KANSAS | Thunderstorm Wind | 1043 |
| KENTUCKY | Thunderstorm Wind | 818 |
| LOUISIANA | Thunderstorm Wind | 425 |
| MAINE | Thunderstorm Wind | 127 |
| MARYLAND | Thunderstorm Wind | 202 |
| MASSACHUSETTS | Thunderstorm Wind | 127 |
| MICHIGAN | Thunderstorm Wind | 263 |
| MINNESOTA | Thunderstorm Wind | 363 |
| MISSISSIPPI | Thunderstorm Wind | 419 |
| MISSOURI | Thunderstorm Wind | 723 |
| MONTANA | High Wind | 435 |
| NEBRASKA | Thunderstorm Wind | 599 |
| NEVADA | High Wind | 245 |
| NEW HAMPSHIRE | Thunderstorm Wind | 109 |
| NEW JERSEY | Thunderstorm Wind | 262 |
| NEW MEXICO | Drought | 375 |
| NEW YORK | Thunderstorm Wind | 1021 |
| NORTH CAROLINA | Thunderstorm Wind | 696 |
| NORTH DAKOTA | Hail | 174 |
| OHIO | Thunderstorm Wind | 639 |
| OKLAHOMA | Heat | 912 |
| OREGON | Heavy Snow | 76 |
| PENNSYLVANIA | Thunderstorm Wind | 971 |
| RHODE ISLAND | Thunderstorm Wind | 11 |
| SOUTH CAROLINA | Thunderstorm Wind | 491 |
| SOUTH DAKOTA | Thunderstorm Wind | 501 |
| TENNESSEE | Thunderstorm Wind | 504 |
| TEXAS | Hail | 1588 |
| UTAH | Thunderstorm Wind | 229 |
| VERMONT | Winter Weather | 92 |
| VIRGINIA | Thunderstorm Wind | 732 |
| WASHINGTON | Heavy Snow | 90 |
| WEST VIRGINIA | Thunderstorm Wind | 481 |
| WISCONSIN | Thunderstorm Wind | 342 |
| WYOMING | High Wind | 271 |
# I plotted the twelve largest counts for state and event-type combinations.
state_plot <- state_pair_ranking[12:1, ]
state_labels <- paste(state_plot$STATE, state_plot$EVENT_TYPE, sep = ": ")
par(mar = c(5, 17, 4, 1))
barplot(state_plot$EVENTS, names.arg = state_labels,
horiz = TRUE, las = 1, col = "#377B76", border = NA,
cex.names = 0.8, xlab = "Number of recorded event IDs",
main = "Twelve largest state and event-type counts")
Figure 2. The twelve largest state/event-type counts. The full state comparison is provided in Table 2 and the saved CSV files.
# Question 3: I looked at how the event types vary by month.
monthly_events <- analysis_data %>%
group_by(EVENT_TYPE, MONTH_NAME) %>%
summarise(EVENTS = n(), .groups = "drop") %>%
arrange(EVENT_TYPE, MONTH_NAME)
# I kept all peak months when more than one had the same highest count.
peak_months <- monthly_events %>%
group_by(EVENT_TYPE) %>%
filter(EVENTS == max(EVENTS)) %>%
ungroup() %>% arrange(EVENT_TYPE, MONTH_NAME)
frequency_ranking <- health_summary %>% arrange(desc(EVENTS), EVENT_TYPE)
top_types <- frequency_ranking$EVENT_TYPE[1:6]
seasonal_data <- analysis_data %>% filter(EVENT_TYPE %in% top_types)
seasonal_data$EVENT_TYPE <- factor(seasonal_data$EVENT_TYPE, levels = top_types)
monthly_table <- table(seasonal_data$MONTH_NAME, seasonal_data$EVENT_TYPE)
write_csv(monthly_events, file.path("results", "events_by_month_and_type.csv"))
write_csv(peak_months, file.path("results", "peak_month_by_event.csv"))
The figure compares calendar-month counts for the six most frequently recorded event types. Thunderstorm Wind and Hail both peak in May, while Winter Weather peaks in January. These contrasts show that the timing differs across event types rather than following one common monthly pattern. The table extends the comparison to every included type by listing its highest-count month or months. These peaks describe 2024 only and should not be treated as a long-term climate average. All twelve months are included in the plotted counts, including zero counts for a selected type.
knitr::kable(peak_months,
caption = "Table 3. Peak month for every included event type; tied peak months are retained.")
| EVENT_TYPE | MONTH_NAME | EVENTS |
|---|---|---|
| Astronomical Low Tide | January | 8 |
| Avalanche | January | 9 |
| Blizzard | January | 191 |
| Coastal Flood | January | 120 |
| Cold/Wind Chill | January | 719 |
| Debris Flow | August | 27 |
| Dense Fog | January | 239 |
| Drought | November | 648 |
| Dust Devil | May | 2 |
| Dust Storm | July | 20 |
| Excessive Heat | July | 927 |
| Extreme Cold/Wind Chill | January | 700 |
| Flash Flood | August | 904 |
| Flood | January | 395 |
| Freezing Fog | January | 3 |
| Frost/Freeze | April | 119 |
| Funnel Cloud | July | 70 |
| Hail | May | 3244 |
| Heat | July | 1043 |
| Heavy Rain | July | 212 |
| Heavy Snow | January | 660 |
| High Surf | January | 30 |
| High Wind | January | 674 |
| Hurricane (Typhoon) | September | 52 |
| Ice Storm | January | 67 |
| Lake-Effect Snow | December | 73 |
| Lakeshore Flood | November | 1 |
| Lightning | May | 38 |
| Rip Current | June | 12 |
| Seiche | August | 3 |
| Sleet | January | 6 |
| Sneakerwave | January | 4 |
| Sneakerwave | February | 4 |
| Storm Surge/Tide | September | 26 |
| Strong Wind | January | 360 |
| Thunderstorm Wind | May | 4632 |
| Tornado | May | 654 |
| Tropical Depression | September | 14 |
| Tropical Storm | September | 337 |
| Wildfire | August | 61 |
| Winter Storm | January | 1081 |
| Winter Weather | January | 1584 |
# I plotted the six most common event types across the year.
line_colors <- c("#245B86", "#BD6135", "#3B8059", "#8A5888", "#A98425", "#555555")
par(mar = c(5, 5, 4, 2))
plot(1:12, monthly_table[, 1], type = "o", pch = 16,
col = line_colors[1], lwd = 2, xaxt = "n",
ylim = c(0, max(monthly_table) * 1.4),
xlab = "Month", ylab = "Recorded event IDs",
main = "Monthly pattern of the six most common event types")
axis(1, at = 1:12, labels = month.abb)
lines(1:12, monthly_table[, 2], type = "o", pch = 17, col = line_colors[2], lwd = 2)
lines(1:12, monthly_table[, 3], type = "o", pch = 15, col = line_colors[3], lwd = 2)
lines(1:12, monthly_table[, 4], type = "o", pch = 18, col = line_colors[4], lwd = 2)
lines(1:12, monthly_table[, 5], type = "o", pch = 1, col = line_colors[5], lwd = 2)
lines(1:12, monthly_table[, 6], type = "o", pch = 2, col = line_colors[6], lwd = 2)
legend("topright", legend = top_types, col = line_colors,
lty = 1, pch = c(16, 17, 15, 18, 1, 2), ncol = 2, cex = 0.8, bty = "n")
Figure 3. Monthly counts of the six most common event types, using the recorded event month. The lines compare counts, not severity.
This additional question compares the sum of reported property and crop damage by event type.
# Question 4: I compared the recorded damage costs for each event type.
# I added up the available estimates and left missing amounts unknown.
damage_summary <- analysis_data %>%
group_by(EVENT_TYPE) %>%
summarise(EVENTS = n(),
PROPERTY_DOLLARS = sum(PROPERTY_DOLLARS, na.rm = TRUE),
CROP_DOLLARS = sum(CROP_DOLLARS, na.rm = TRUE),
MISSING_PROPERTY = sum(is.na(PROPERTY_DOLLARS)),
MISSING_CROPS = sum(is.na(CROP_DOLLARS)), .groups = "drop") %>%
mutate(RECORDED_DAMAGE = PROPERTY_DOLLARS + CROP_DOLLARS) %>%
arrange(desc(RECORDED_DAMAGE), EVENT_TYPE)
write_csv(damage_summary, file.path("results", "recorded_damage_by_event.csv"))
damage_display <- damage_summary %>%
mutate(PROPERTY_BILLIONS = round(PROPERTY_DOLLARS / 1e9, 3),
CROP_BILLIONS = round(CROP_DOLLARS / 1e9, 3),
COMBINED_BILLIONS = round(RECORDED_DAMAGE / 1e9, 3)) %>%
select(EVENT_TYPE, PROPERTY_BILLIONS, CROP_BILLIONS,
COMBINED_BILLIONS, MISSING_PROPERTY, MISSING_CROPS)
Hurricane (Typhoon) has the largest combined recorded estimate, at approximately $6.81 billion. There are 14,305 missing property estimates and 14,759 missing crop estimates in the included records. The ranking therefore reflects available estimates, and types with substantial unrecorded losses may be understated. It does not include every possible economic consequence, such as all business interruption or recovery costs.
knitr::kable(head(damage_display, 10), digits = 3,
caption = "Table 4. Recorded losses in billions of US dollars, with missing-estimate counts. Displayed figures are rounded; calculations use unrounded amounts.")
| EVENT_TYPE | PROPERTY_BILLIONS | CROP_BILLIONS | COMBINED_BILLIONS | MISSING_PROPERTY | MISSING_CROPS |
|---|---|---|---|---|---|
| Hurricane (Typhoon) | 5.303 | 1.510 | 6.813 | 0 | 0 |
| Flash Flood | 3.142 | 0.102 | 3.244 | 0 | 0 |
| Tropical Storm | 1.902 | 0.253 | 2.155 | 0 | 0 |
| Tornado | 1.721 | 0.009 | 1.730 | 0 | 0 |
| Wildfire | 1.103 | 0.065 | 1.168 | 0 | 0 |
| Storm Surge/Tide | 0.870 | 0.000 | 0.870 | 0 | 0 |
| Flood | 0.649 | 0.005 | 0.654 | 0 | 0 |
| Thunderstorm Wind | 0.412 | 0.029 | 0.441 | 0 | 0 |
| Hail | 0.227 | 0.143 | 0.370 | 0 | 0 |
| High Wind | 0.128 | 0.113 | 0.241 | 0 | 0 |
# I plotted the recorded damage totals, keeping in mind that some costs were missing.
damage_plot <- damage_summary[10:1, ]
par(mar = c(5, 11, 4, 1))
barplot(damage_plot$RECORDED_DAMAGE / 1e9,
names.arg = damage_plot$EVENT_TYPE, horiz = TRUE, las = 1,
col = "#79578F", border = NA, cex.names = 0.85,
xlab = "Recorded property and crop damage (billions of US dollars)",
main = "Ten event types with the largest recorded losses")
Figure 4. Ten event types with the largest sum of available property and crop damage estimates. Missing estimates remain unknown.
The checks below verify that event counts reconcile across the summaries and that the health totals come from unique event IDs. The same calculations are included in the accompanying R script.
# Finally, I checked that the totals agreed across my summaries.
stopifnot(nrow(analysis_data) == length(unique(analysis_data$EVENT_ID)),
sum(health_summary$EVENTS) == nrow(analysis_data),
sum(state_events$EVENTS) == nrow(analysis_data),
sum(monthly_events$EVENTS) == nrow(analysis_data),
sum(health_summary$DEATHS) == sum(analysis_data$TOTAL_DEATHS),
sum(health_summary$INJURIES) == sum(analysis_data$TOTAL_INJURIES))
print(data.frame(EVENTS = nrow(analysis_data),
DEATHS = sum(analysis_data$TOTAL_DEATHS),
INJURIES = sum(analysis_data$TOTAL_INJURIES)))
## EVENTS DEATHS INJURIES
## 1 66388 1110 1794
This is a descriptive analysis of one year of NOAA records, not a forecast or a causal study. A single weather system may generate multiple event IDs, and reporting practices differ by location and event type. Deaths and injuries are recorded counts rather than population-adjusted rates. The economic results depend on incomplete estimated losses, and the scope excludes marine-area and territory records. These limits matter when interpreting comparisons for planning purposes.
sessionInfo()
## R version 4.5.1 (2025-06-13 ucrt)
## Platform: x86_64-w64-mingw32/x64
## Running under: Windows 11 x64 (build 26300)
##
## Matrix products: default
## LAPACK version 3.12.1
##
## locale:
## [1] LC_COLLATE=English_United States.utf8
## [2] LC_CTYPE=English_United States.utf8
## [3] LC_MONETARY=English_United States.utf8
## [4] LC_NUMERIC=C
## [5] LC_TIME=English_United States.utf8
##
## time zone: America/New_York
## tzcode source: internal
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] readr_2.1.5 dplyr_1.1.4
##
## loaded via a namespace (and not attached):
## [1] crayon_1.5.3 vctrs_0.6.5 cli_3.6.5 knitr_1.52
## [5] rlang_1.1.6 xfun_0.60 otel_0.2.0 generics_0.1.4
## [9] jsonlite_2.0.0 bit_4.6.0 glue_1.8.0 htmltools_0.5.9
## [13] sass_0.4.10 hms_1.1.3 rmarkdown_2.32 evaluate_1.0.5
## [17] jquerylib_0.1.4 tibble_3.3.0 tzdb_0.5.0 fastmap_1.2.0
## [21] yaml_2.3.12 lifecycle_1.0.4 compiler_4.5.1 pkgconfig_2.0.3
## [25] digest_0.6.39 R6_2.6.1 tidyselect_1.2.1 parallel_4.5.1
## [29] vroom_1.6.5 pillar_1.11.0 magrittr_2.0.3 bslib_0.12.0
## [33] withr_3.0.2 bit64_4.6.0-1 tools_4.5.1 cachem_1.1.0