eq_clean_data: Cleans NOAA earthquake data

Description Usage Arguments Value Examples

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","earthquakes_data.txt.gz",package="earthquakesViz")
readr::read_delim(filename, delim = "\t") %>%
eq_clean_data()

## End(Not run)

leigitcode/earthquakesViz documentation built on May 7, 2019, 11:14 a.m.