eq_clean_data: Clean NCEI earthquake data

Description Usage Arguments Value Examples

View source: R/earthquake_proj.R

Description

Reads, tidies and returns earthquake data downloadedfrom the US National Centers for Environmental Information: https://www.ngdc.noaa.gov/hazel/view/hazards/earthquake/search. Longitude and latitude fields are read in automatically as numeric data types using the readr::read_delim function and do not need to be specified.

Usage

1
eq_clean_data(filename)

Arguments

filename

A character string giving the path and name of the delimited file to be read in e.g."data/earthquakes.tsv"

Value

Output will be a data.frame object.

Examples

1
2
3
4
## Not run: 
eq_clean_data("data/earthquakes.tsv")

## End(Not run)

csgbloom/NOAAearthquake documentation built on April 12, 2021, 12:40 p.m.