Description Usage Arguments Value Examples
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.
1 | eq_clean_data(raw_data, column_id)
|
raw_data |
the data frame to be cleaned |
column_id |
the column containting location as a string |
a cleaned data frame
1 2 3 4 | ## Not run:
eq_clean_data(earthquakes, LOCATION_NAME)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.