Description Usage Arguments Value Examples
This function unites temporal information in a DATE column,
converts the spatial coordinates (LONGITUDE, LATITUDE),
the earthquake magnitude (EQ_PRIMARY),
and the number of deaths (TOTAL_DEATHS) to numeric,
cleans the LOCATION_NAME by using the eq_location_clean
function,
and discards several columns not needed for the analysis of earthquakes in this package.
1 |
raw |
A data frame or tibble with the raw data. The country must be separated from the location name by a colon. |
A data frame or tibble with the cleaned data.
1 2 3 | file <- system.file("extdata", "earthquakes.tsv.gz", package = "NOAAeq")
data <- readr::read_delim(file = file, delim = "\t")
eq_clean_data(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.