Skip to content

Commit

Permalink
Update storms data through 2022 (#6937)
Browse files Browse the repository at this point in the history
* Update `storms` data through 2022

* NEWS bullet

---------

Co-authored-by: Davis Vaughan <davis@posit.co>
  • Loading branch information
steveharoz and DavisVaughan authored Nov 3, 2023
1 parent 966b044 commit d16af10
Show file tree
Hide file tree
Showing 5 changed files with 481 additions and 8 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# dplyr (development version)

* Updated the `storms` data to include 2022 data (#6937, @steveharoz).

* Updated the `starwars` data to use a new API, because the old one is defunct.
There are very minor changes to the data itself (#6938, @steveharoz).

Expand Down
2 changes: 1 addition & 1 deletion data-raw/storms.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ library(tidyverse)
# TO UPDATE: get the latest URL from https://www.nhc.noaa.gov/data/#hurdat, and rerun this code

# Read in data set so each line is a character string
storm_file_complete <- read_file("https://www.nhc.noaa.gov/data/hurdat/hurdat2-1851-2021-041922.txt")
storm_file_complete <- read_file("https://www.nhc.noaa.gov/data/hurdat/hurdat2-1851-2022-050423.txt")
storm_strings <- read_lines(storm_file_complete)

# Identify the header lines that have three commas
Expand Down
Loading

0 comments on commit d16af10

Please sign in to comment.