adjust_storm_data {noaastormevents} | R Documentation |
Adjust storm data
Description
Adjusts storm data based on user selections on date range, distance limit to a storm, etc.
Usage
adjust_storm_data(
storm_data,
date_range = NULL,
event_types = NULL,
dist_limit = NULL,
storm = NULL
)
Arguments
storm_data |
A dataset of storm data. This dataset must include certain columns given in the NOAA Storm Events datasets for which this package was created. |
date_range |
A character vector of length two with the start and end
dates to pull data for (e.g., |
event_types |
Character vector with the types of storm events that should be kept. The default value (NULL) keeps all types of events. See the "Details" vignette for this package for more details on possible event types. |
dist_limit |
A numeric scalar with the distance (in kilometers) that a county
must be from the storm's path to be included. The default (NULL) does not eliminate any
events based on distance from a storm's path. This option should only be used when also
specifying a storm with the |
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., |