Description Usage Arguments Value Examples
This function is a helper function for many of the the other functions in this package that measure wind exposure.
1 2 3 4 5 6 7 8 9  | filter_wind_data(
  counties = NULL,
  storm = NULL,
  year_range = NULL,
  wind_limit = NULL,
  output_vars = "fips",
  wind_var = "vmax_sust",
  wind_source = "modeled"
)
 | 
counties | 
 A character vector listing all 5-digit county FIPS codes for a subset of counties.  | 
storm | 
 A character string giving the storm ID (e.g., "Floyd-1999")  | 
year_range | 
 A numeric vector of length two with the starting and ending year to subset to.  | 
wind_limit | 
 A numeric vector of length one giving the minimum
wind speed (in meters per second) or duration of winds of 20 m / s or more
(in minutes) to use in the filter. The units of this variable will depend on
the user's choice for the   | 
output_vars | 
 A character vector listing all the columns to include in the output.  | 
wind_var | 
 A character string giving the wind variable to use. Choices
are   | 
wind_source | 
 A character string specifying the source to use for the winds. Options
are   | 
A dataframe with storms filtered based on the input criteria to the
function. Columns in the output will vary depending on the user's
selections for the output_vars argument.
1 2 3 4 5 6 7 8 9  | # Ensure that data package is available before running the example.
#  If it is not, see the `hurricaneexposure` package vignette for details
# on installing the required data package.
if (requireNamespace("hurricaneexposuredata", quietly = TRUE)) {
filter_wind_data(counties = c("22071", "51700"), year_range = c(1988, 2011),
                 wind_limit = 20,
                 output_vars = c("fips", "storm_id", "vmax_sust"))
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.