eq_location_clean: Clean location in NOAA significant earthquake database

Description Usage Arguments Value Imported functions Examples

Description

A function that removes country information from the location field and ensures that the location is in title case. The function takes in the NOAA data, which is obtained from https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1) and returns a data frame with a cleaned location name

Usage

1

Arguments

noaa_data

NOAA significant Earthquakes dataset

Value

A data.frame, data.table with updated location name

Imported functions

data.table syntax

Examples

1
2
3
library(data.table)
raw_noaa <- as.data.table(noaa_data)
clean_noaa <- eq_location_clean(raw_noaa)

marksendak/MsdrCapstoneMPS documentation built on May 23, 2019, 7:33 a.m.