eq_location_clean: Clean Earthquake Location Field

Description Usage Arguments Value Examples

View source: R/RCapstone.R

Description

The function takes a data frame of NOAA earthquake data and cleans the LOCATION_NAME field. It removes the country name (of form "COUNTRY:" from the LOCATION_NAME data, and converts the remainder of the field to Title Case. This will make the location name easier to read when plotting and mapping.

Usage

1

Arguments

x

A data frame of NOAA significant earthquake data.

Value

A dataframe with the same supplied data, but with the LOCATION_NAME variable cleaned up to remove the country name that is supplied in the COUNTRY variable and convert the remainder of the words in LOCATION_NAME to Title Case.

Examples

1
2
3
4
## Not run: 
data_loc_clean <- eq_location_clean(data_raw)

## End(Not run)

JulianTWolf/RCapstone documentation built on May 3, 2019, 4:02 p.m.