create_storm_data: Get storm data based on date range or storm name

Description Usage Arguments Examples

View source: R/download.R

Description

This function pulls storm events data based on a specified date range and / or storm name. (Note: This function pulls full years' worth of data. Later functions filter down to the exact date range desired.)

Usage

1
create_storm_data(date_range = NULL, storm = NULL, file_type = "details")

Arguments

date_range

A character vector of length two with the start and end dates to pull data for (e.g., c("1999-10-16", "1999-10-18")).

storm

A character string with the name of the storm to pull storm events data for. This string must follow the format "[storm-name]-[4-digit storm year]" (e.g., "Floyd-1999"). Currently, this functionality only works for storms included in the extended hurricane best tracks, which covers 1988 to 2015.

file_type

A character string specifying the type of file you would like to pull. Choices include: "details" (the default), "fatalities", or "locations".

Examples

1
2
3
4
5
## Not run: 
floyd_data <- create_storm_data(date_range = c("1999-10-16", "1999-10-18"))
floyd_data2 <- create_storm_data(storm = "Floyd-1999")

## End(Not run)

noaastormevents documentation built on Jan. 21, 2021, 5:11 p.m.