eq_clean_data: Cleaning Earthquake data

Description Usage Arguments Value Examples

Description

Under the cleaning we understand the following: new DATE column added; LOCATION cleaned up; lines with no LONGITUDE or LATITUDE removed; lines with no Richter magnitude removed; data with YEAR B.C. removed.

Usage

1

Arguments

data

Raw earthquake data in the dataframe in format of NOAA earthquakes database.

Value

Data frame with cleaned up data

Examples

1
2
3
filename <- system.file("extdata", "earthquakes.tsv.gz", package = "earthquakes")
raw_data <- read_delim(filename, delim = "\t")
data <- eq_clean_data(raw_data)

flyeye/earthquakes documentation built on May 16, 2019, 1:42 p.m.