Description Usage Arguments Details Value Examples
Cleaning NOAA earthquake data location values
1 | eq_location_clean(locationtoclean)
|
locationtoclean |
A data frame with raw data obtained from NOAA website |
After downloading and reading in the dataset from NOAA site, https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1. National Geophysical Data Center / World Data Service (NGDC/WDS): Significant Earthquake Database. National Geophysical Data Center, NOAA. doi:10.7289/V5TD9V7K The function cleans the LOCATION_NAME column by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps).
A data frame with cleaned LOCATION_NAME column
1 2 3 4 5 6 | ## Not run:
library(readr)
data <- readr::read_delim("signif.txt", delim = "\t")
data <- eq_location_clean(data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.