eq_location_clean: Cleaning NOAA earthquake data location values

Description Usage Arguments Details Value Examples

Description

Cleaning NOAA earthquake data location values

Usage

1
eq_location_clean(locationtoclean)

Arguments

locationtoclean

A data frame with raw data obtained from NOAA website

Details

After downloading and reading in the dataset from NOAA site, https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1. National Geophysical Data Center / World Data Service (NGDC/WDS): Significant Earthquake Database. National Geophysical Data Center, NOAA. doi:10.7289/V5TD9V7K The function 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).

Value

A data frame with cleaned LOCATION_NAME column

Examples

1
2
3
4
5
6
## Not run: 
library(readr)
data <- readr::read_delim("signif.txt", delim = "\t")
data <- eq_location_clean(data)

## End(Not run)

llangevin/EQVT documentation built on May 13, 2019, 5:24 p.m.