eq_location_clean: Polish LOCATION_NAME column in the significant earthquake...

Description Usage Arguments Value Examples

Description

This function takes as input a data.frame of the entire significant earthquake data data, 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

Arguments

data

A tibble data.frame with LOCATION_NAME column that has to be cleaned

Value

This function returns a tibble (data.frame)

Examples

1
2
3
NOAA_url = "https://www.ngdc.noaa.gov/nndc/struts/results?type_0=Exact&query_0=$ID&t=101650&s=13&d=189&dfn=signif.txt"
data <- suppressMessages({readr::read_delim(NOAA_url, delim = "\t", progress = FALSE)})
eq_location_clean(data)

volansys/earthquake-visualization documentation built on May 3, 2019, 6:40 p.m.