create_storm_data {noaastormevents} | R Documentation |
Get storm data based on date range or storm name
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
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., |
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., |
file_type |
A character string specifying the type of file you would like to pull. Choices include: "details" (the default), "fatalities", or "locations". |
Examples
## 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)