eq_location_clean: Prepares a NOAA data frame by stripping COUNTRY from the...

Description Usage Arguments Value Examples

View source: R/clean_data.R

Description

Prepares a NOAA data frame by stripping COUNTRY from the LOCATION_NAME and converting LOCATION_NAME to title case.

Usage

1
eq_location_clean(raw_noaa_df)

Arguments

raw_noaa_df

This is the raw data frame read in directly from the NOAA csv file.

Value

The clean data frame with title cased LOCATION_NAME without COUNTRY part.

Examples

1
2
3
raw_df <- readr::read_delim(file = system.file("extdata", "signif.txt", package="noaa"),
                                               delim = "\t")
location_cleaned_df <- eq_location_clean(raw_df)

chrpihl/noaa documentation built on May 25, 2019, 3:26 p.m.