eq_clean_data: Clean up earthquake data

Description Usage Arguments Value Examples

View source: R/code.R

Description

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.

Usage

1
eq_clean_data(raw_data, column_id)

Arguments

raw_data

the data frame to be cleaned

column_id

the column containting location as a string

Value

a cleaned data frame

Examples

1
2
3
4
## Not run: 
eq_clean_data(earthquakes, LOCATION_NAME)

## End(Not run)

khailper/swdevcapstone documentation built on May 20, 2019, 9:22 a.m.