Skip to content

Commit d16af10

Browse files
Update storms data through 2022 (#6937)
* Update `storms` data through 2022 * NEWS bullet --------- Co-authored-by: Davis Vaughan <[email protected]>
1 parent 966b044 commit d16af10

File tree

5 files changed

+481
-8
lines changed

5 files changed

+481
-8
lines changed

NEWS.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# dplyr (development version)
22

3+
* Updated the `storms` data to include 2022 data (#6937, @steveharoz).
4+
35
* Updated the `starwars` data to use a new API, because the old one is defunct.
46
There are very minor changes to the data itself (#6938, @steveharoz).
57

data-raw/storms.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ library(tidyverse)
77
# TO UPDATE: get the latest URL from https://www.nhc.noaa.gov/data/#hurdat, and rerun this code
88

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

1313
# Identify the header lines that have three commas

0 commit comments

Comments
 (0)