eq_location_clean: Cleaning raw NOAA data frame location columns

Description Usage Arguments Details Value Examples

View source: R/eq_clean_data.R

Description

Cleaning raw NOAA data frame location columns

Usage

1

Arguments

df

A raw data frame containing eqrthquake data from NOAA website

Details

In order to use this function, one has to obtain the NOAA data from https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1. The function returns a cleaned data frame with cleaned columns: LOCATION_NAME. From the LOCATION_NAME column the country name is stripped out and names are converted to title case.

Value

A clean data frame with location column

Examples

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

## End(Not run)

mkaywins/Capstone_project documentation built on Feb. 24, 2020, 8:36 p.m.