eq_location_clean: Clean Earthquake location from NOAA Earthquake database

Description Usage Arguments Value Examples

Description

Function eq_location_clean() cleans the LOCATION_NAME column by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps).

Usage

1
eq_location_clean(raw_earthquake)

Arguments

raw_earthquake

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

Value

data frame with cleaned up LOCATION_NAME field

Examples

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

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