Learn R Programming

rnoaa (version 0.8.4)

storm_events: NOAA Storm Events data

Description

NOAA Storm Events data

Usage

se_data(year, type, overwrite = TRUE, ...)

se_files(...)

Arguments

year

(numeric) a four digit year. see output of `se_files()` for available years. required.

type

(character) one of details, fatalities, locations, or legacy. required.

overwrite

(logical) To overwrite the path to store files in or not, Default: TRUE

...

Curl options passed on to HttpClient (optional)

Value

A tibble (data.frame)

File storage

We use rappdirs to store files, see user_cache_dir for how we determine the directory on your machine to save files to, and run rappdirs::user_cache_dir("rnoaa/stormevents") to get that directory.

References

https://www.ncdc.noaa.gov/stormevents/

Examples

Run this code
# NOT RUN {
# get list of files and their urls
res <- se_files()
res
tail(res)

# get data
x <- se_data(year = 2013, type = "details")
x

z <- se_data(year = 1988, type = "fatalities")
z

w <- se_data(year = 2003, type = "locations")
w

leg <- se_data(year = 2003, type = "legacy")
leg
# }

Run the code above in your browser using DataLab