eq_location_clean: Cleans earthquake location data

Description Usage Arguments Details Value Note Examples

View source: R/data_preparation.R

Description

Cleans earthquake location data

Usage

1

Arguments

raw_data

A data frame with raw data obtained from NOAA website

Details

This function transforms NOAA raw data frame's LOCATION_NAME column by trimming the country name (if applicable) and converting to title case

Value

A data frame with cleaned LOCATION_NAME column

Note

The function is not exported

Examples

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

## End(Not run)

DanielaSempertegui/Mastering-Software-Development-en-R-Capstone documentation built on May 16, 2019, 8:10 p.m.