eq_location_clean: earthquake package

Description Usage Arguments Details Value Examples

View source: R/eq_location_clean.R

Description

1.Clean location name with eq_location_clean function

Usage

1

Arguments

x

a string to be cleaned, with country name and location name separated by colon (:).

Details

This function is used to clean LOCATION_NAME variable by stripping out country names and keep the location name, which will be used in plots. The location name will be convert to title case.

Value

a string that is cleaned, if location name only contains country name, then country name will be returned

Examples

1
2
3
4
5
6
## Not run: 
eq_location_clean("ECUADOR:  RIOBAMBA, QUITO, CUZCO")
eq_location_clean("TURKEY")
eq_location_clean("China: Jiangsu: Nanjing")

## End(Not run)

hsm-stephanie/earthquake documentation built on April 30, 2020, 12:44 p.m.