Cleans up data frame by creating a date column, converting lat/long, deaths, and magnitude to numeric rather than character, and applying eq_location_clean. Function assumes data splits date into YEAR, MONTH, and DAY column. Location data needs to be in LATITUDE and LONGITUDE columns. Function is case sensitive.
the data frame to be cleaned
the column containting location as a string
a cleaned data frame
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.