eq_location_clean: Clean Location Name

Description Usage Arguments Value Examples

View source: R/process_data.R

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/courseraeq documentation built on May 22, 2019, 12:42 p.m.