get_storms | R Documentation |
Returns storms and product link.
get_storms(years = format(Sys.Date(), "%Y"), basins = c("AL", "EP"))
years |
numeric or vector, four digits (%Y format) |
basins |
One or both of c("AL", "EP") |
A 4xN dataframe
Numeric, four-digit year of the storm
Character, name of storm mixed-case
AL (Atlantic) or EP (East Pacific)
URL to storms' product pages
By default returns all storms for the current year. If no storms have developed will return an empty dataframe.
Dataframe of storms.
http://www.nhc.noaa.gov/archive/2016/
# Default. Get all storms, both basins, for last year.
## Not run:
storms <- get_storms(year = 2016, basin = c("AL", "EP"))
# Get storms for two different years
storms.2010 <- get_storms(c(2010, 2015))
# Get storms for two consecutive years, Atlantic basin only
storms.al.2005 <- get_storms(2005:2007, basin = "AL")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.