eq_clean_data: Clean earthquake data frame

Description Usage Arguments Value Examples

Description

A DATE column is created based on YEAR, MONTH, DAY. LATITUDE and LONGITUDE are converted to numeric. EQ_PRIMARY and TOTAL_DEATHS are converted to numeric. LOCATION_NAME is cleaned by passing it to the eq_location_clean function.

Usage

1
eq_clean_data(earthquakes)

Arguments

earthquakes

A data frame containing the earthquakes data set.

Value

A new data frame with cleaned earthquakes data.

Examples

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

## End(Not run)

davidbody/earthquakes-package documentation built on May 14, 2019, 10:37 p.m.