Description Usage Arguments Details Value Examples
eq_clean_data
cleans date, latitude and longitude, and location name
from the source NOAA data
1 |
data |
A data frame with raw data obtained from NOAA website (see below) |
The function requires raw date obtained from NOAA site https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1. It adds a column DATE with cleaned date (Date format), transforms LATITUDE and LONGITUDE columns as numeric objects and transforms LOCATION_NAME by removing the country and transforming to title case.
A data frame with cleaned date, latitude, longitude and location columns
1 2 3 4 5 | ## Not run:
data <- readr::read_delim("earthquakes.tsv.gz", delim = "\t")
clean_data <- eq_clean_data(data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.