eq_location_clean: Clean Location Name

Description Usage Arguments Value Examples

Description

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".

Usage

1

Arguments

string

a character vector with the earthquake location

Value

a string vector

Examples

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)

frenkg/coursera.eq documentation built on May 12, 2019, 1:04 p.m.