storm_events: NOAA Storm Events data

storm_eventsR Documentation

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

Value

A tibble (data.frame)

Note

See stormevents_cache for managing cached files

References

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

Examples

## 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

## End(Not run)

rnoaa documentation built on April 27, 2023, 9:08 a.m.