Description Usage Arguments Value Examples
This function "cleans" the initial dataset so it can be further used in geoms: creates date column in POSTIXct format with given Year, Month and Day,
as well as convert LONGITUDE and LATITUDE to numeric and clean location name using previous function [func(eq_location_clean)]. Because the cleaning task is
quite specific to the current database, there is no option to choose columns, related to dates and coordinates. Instead, all of them are nested in the body of function
thus, the only arument is the name of data.frame
in which base is stored
1 |
data |
a data frame that contains the imported base |
cleaned dataframe is returned with country names in title case and coordinates as numeric insread of character
1 | ## Not run: eq_clean_data(database)->cleaned_base
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.