eq_location_clean: Reformat all caps location to shorter Title case one.

Description Usage Arguments Value Examples

Description

Takes an earthquake like data frame and creates an easy to read location string. cleans the LOCATION_NAME column by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps). This will be needed later for annotating visualizations. This function should be applied to the raw data to produce a cleaned up version of the LOCATION_NAME column.

Usage

1

Arguments

frame

The earthquake data frame or its cleaned version. See the documentaton in the data part.

Value

The same data frame with converted 'LOCATION_NAME'.

Examples

1
2
3
4
## Not run: 
  earthquake_titlecaps <- eq_location_clean(earthquakes)

## End(Not run)

cogitoergoread/noaa documentation built on May 20, 2019, 1:28 p.m.