Description Usage Arguments Value Examples
View source: R/earthquake_functions.R
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.
1 | eq_clean_data(raw_df)
|
raw_df |
The raw dataframe created from data in the NOAA file. |
This function returns the clean earthquake data in a tbl_df object.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.