Learn R Programming

rnoaa (version 1.4.0)

storm_events: NOAA Storm Events data

Description

NOAA Storm Events data

Usage

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

se_files(...)

Value

A tibble (data.frame)

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 crul::verb-GET (optional)

References

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

Examples

Run this code
if (FALSE) {
# 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