eq_location_clean: Clean up LOCATION_NAME column from downloaded data frame

Description Usage Arguments Value Examples

Description

This function reads an Earthquake dataset in a dataframe format to clean the LOCATION_NAME column by stripping out the country name (including the colon) and convert names to title case (as opposed to all caps).

Usage

1
eq_location_clean(EarthquakeData)

Arguments

EarthquakeData

A dataframe.

Value

This function returns a data frame with the column LOCATION_NAME cleaned.

Examples

1
2
3
4
5
## Not run: 
eq_location_clean(EarthquakeDataFrame)
eq_clean_data("signif.txt") %>% eq_location_clean()

## End(Not run)

DanielAyllon/EarthQuakeAnalyzer documentation built on May 6, 2019, 1:23 p.m.