eq_clean_data: Cleans NOAA earthquake data

Description Usage Arguments Value Examples

View source: R/earthquake_functions.R

Description

This is a function which generates a DATE column and changes LATITUDE, LONGITUDE, EQ_PRIMARY, and DEATHS to numeric variables. The function calls eq_location_clean to clean the LOCATION_NAME column into a format suitable for display purposes.

Usage

1
eq_clean_data(raw_df)

Arguments

raw_df

The raw dataframe created from data in the NOAA file.

Value

This function returns the clean earthquake data in a tbl_df object.

Examples

1
2
3
4
5
6
## Not run: 
filename<-system.file("extdata","data.gz",package="ykvdpcap")
readr::read_delim(filename, delim = "\t") %>%
eq_clean_data()

## End(Not run)

ykv001/ykvdpcap documentation built on May 29, 2019, 2:55 p.m.