data-raw/update_storms.R

library(dplyr)
library(readr)
library(rrricanes)

fstadv <- load_storm_data("fstadv")

storms <- fstadv |>
    group_by(Key) |>
    summarise(Name = last(Name),
              Wind = max(Wind),
              StartDate = first(Date),
              EndDate = last(Date))

write_csv(storms, "./datasets/storms.csv")
timtrice/Hurricanes documentation built on Oct. 10, 2023, 8:15 p.m.