This function clean the input data by cpnverting it into a data frame, bluid
a new variable representing the date of the earthquake, assure relevant
variables are numeric (
DEATHS), and finally clean the
LOCATION_NAME by calling the
If any of those variables is not present, the function stops and return an
a data frame or matrix containing the information about earthquakes. Must contain the following columns: YEAR, MONTH, DAY, LATITUDE, LONGITUDE, EQ_PRIMARY, DEATHS.
a data frame with cleaned data
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.