Description Usage Arguments Details Value Examples
View source: R/eq_location_clean.R
1.Clean location name with eq_location_clean
function
1 |
x |
a string to be cleaned, with country name and location name separated by colon (:). |
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.
a string that is cleaned, if location name only contains country name, then country name will be returned
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.