get_storms: get_storms

View source: R/get_storms.R

get_stormsR Documentation

get_storms

Description

Returns storms and product link.

Usage

get_storms(years = format(Sys.Date(), "%Y"), basins = c("AL", "EP"))

Arguments

years

numeric or vector, four digits (%Y format)

basins

One or both of c("AL", "EP")

Format

A 4xN dataframe

Year

Numeric, four-digit year of the storm

Name

Character, name of storm mixed-case

Basin

AL (Atlantic) or EP (East Pacific)

Link

URL to storms' product pages

Details

By default returns all storms for the current year. If no storms have developed will return an empty dataframe.

Value

Dataframe of storms.

Source

http://www.nhc.noaa.gov/archive/2016/

Examples

# 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)

timtrice/Hurricanes documentation built on Oct. 10, 2023, 8:15 p.m.