eq_location_clean: eq_location_clean

Description Usage Arguments Value Examples

Description

This function modifies the LOCATION_NAME column of a dataframe by separating the LOCATION_NAME into multiple strings (separated by the character ':'), and selecting the last one. This step transforms the LOCATION_NAME field from states and cities (towns) to just cities. It also correctly formats the LOCATION_NAME so that it only has its first letter capitalized.

Usage

1

Arguments

dset

Dataset depicting the raw NOAA data frame.

Value

This function returns the raw NOAA data frame with the LOCATION_NAME columns cleaned up.

Examples

1
2
3
4
5
6
7
## Not run: 

dataset = read_delim("data/signif.txt", delim = "\t")
dataset = eq_location_clean(dataset)


## End(Not run)

ronybsulca/earthquakeGeoms documentation built on May 6, 2019, 5:03 p.m.