Description Usage Arguments Value Examples
This function takes a string as input: if a colon ":" is present, it trim the beginning of the string till the ":" and following 2 spaces. If no colon ":" is present, the function returns the same string. The function is designe to work on a string, so that can be called within a "pipe".
1 | eq_location_clean(string)
|
string |
a character vector with the earthquake location |
a string vector
1 2 3 4 5 | ## Not run:
eq_location_clean("JORDAN: BAB-A-DARAA,AL-KARAK")
#[1] "Bab-a-Daraa,al-Karak"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.