eq_clean_data: clean entire dataset

Description Usage Arguments Value Examples

Description

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

Usage

1

Arguments

data

a data frame that contains the imported base

Value

cleaned dataframe is returned with country names in title case and coordinates as numeric insread of character

Examples

1
## Not run: eq_clean_data(database)->cleaned_base

Yailama/Capstone-project documentation built on May 25, 2019, 2:23 p.m.