# NOT RUN {
# 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)) {
# To run this example, you will need to have a directory named "tmp"
# as a subdirectory of your home directory.
# By county
events_exposure(locations = c("22071", "51700"),
start_year = 1995, end_year = 2005,
event_type = "flood",
out_dir = "~/tmp/storms")
}
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab