eq_location_clean: eq_location_clean

Description Usage Arguments Details Value Examples

Description

Clean up the format of LOCATION_NAME column in a NOAA dataframe (see eq_clean_data for more details)

Usage

1

Arguments

data

A data frame with raw data from NOAA (see details)

Details

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). This function is only used inside eq_clean_data, not exported.

Value

data A data frame with cleaned LOCATION_NAME format

Examples

1
2
3
4
5
## Not run: 
data <- readr::read_delim("earthquakes.tsv.gz", delim = "\t")
clean_data <- eq_location_clean(data)

## End(Not run)

fdelzompo/MSDR documentation built on May 3, 2019, 2:58 p.m.