eq_location_clean: Clean the LOCATION_NAME : 'eq_location_clean()'

Description Usage Arguments Value Examples

Description

This function cleans the LOCATION_NAME column by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps).

Usage

1

Arguments

x

A chracter vector

Value

A character vector cleaned

Examples

1
2
3
4
5
6
7
8
## Not run: 
 library(readr)
 library(dplyr)
 # Note that the raw data set has to be downloaded beforehand
 raw_df <- readr::read_delim("data/rawdata.txt", "\t")
 raw_df <- raw_df %>% dplyr::mutate(LOCATION_NAME = eq_location_clean(LOCATION_NAME))

## End(Not run)

atibot/eqplot documentation built on May 17, 2019, 4 p.m.