Description Usage Arguments Value Examples
This function cleans up the local location of an earthquake. If there are multiple locations separated by commas, each location name is cleaned and the locations are recombined into a string. Cleaning involves removing extra white space, converting to title case, and removing location names that are only directions, e.g., "e", "east of", etc. This function is used by eq_clean_data().
1 | clean_local_location(local_loc_str)
|
local_loc_str |
A character string giving the locations separated by commas. |
This function returns a string containing the cleaned up location.
1 | clean_local_location("CUZCO,COLLAO,LIMA")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.