Skip to content

Instantly share code, notes, and snippets.

@joebrew
Created September 8, 2017 13:05
Show Gist options
  • Save joebrew/dc44ef4663e843356a57582da9d118bd to your computer and use it in GitHub Desktop.
Save joebrew/dc44ef4663e843356a57582da9d118bd to your computer and use it in GitHub Desktop.
Getting hurricane data
# Libraries
library(tidyverse)
library(rworldmap)
library(gganimate)
library(rgdal)
# Read data
world <- map_data(map="world")
hurricanes <- read_csv('data/Allstorms.ibtracs_wmo.v03r09.csv', skip = 1) # https://www.ncdc.noaa.gov/ibtracs/index.php?name=wmo-data
cnames <- names(hurricanes)
hurricanes <- read_csv('data/Allstorms.ibtracs_wmo.v03r09.csv', skip = 2)
names(hurricanes) <- cnames
irma <- readOGR('data/irma/', 'AL112017_lin') # http://www.nhc.noaa.gov/gis/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment