eq_location_clean: Clean Location Name of NOAA Data

Description Usage Arguments Value Examples

View source: R/clean_functions.R

Description

The function eq_location_clean cleans the location names of a raw NOAA data frame by stripping out the country name and converting the location names to title case.

Usage

1

Arguments

data

A raw NOAA data frame.

Value

A NOAA data frame with a cleaned location name column.

Examples

1
2
3
4
5
6
7
8
# import libraries
library(dplyr)
library(readr)
# set working directory
setwd(system.file("extdata", package = "noaa"))
# read and clean NOAA data
data <- read_delim("signif.txt", "\t") %>%
   eq_location_clean()

kfull/noaa documentation built on May 25, 2019, 8:29 p.m.