eq_location_clean: Clean and Format Location Data

Description Usage Arguments Details Value Examples

View source: R/prep_data.R

Description

This funtion 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).

Usage

1

Arguments

df

The erthquake data with raw location names

Details

This function takes the raw LOCATION_NAME and extracts everything after the ':', then removes the colon, replaces any LOCATION_NAMEs less than 5 characters with the COUNTRY name, and then converts to title case.

Value

Returns a tbl_df data.frame

Examples

1
## Not run: eq_location_clean(df=data)

ctaber/NOAA documentation built on Nov. 4, 2019, 9:19 a.m.