eq_clean_data: Clean Earthquake Dataframe

Description Usage Arguments Value Examples

Description

The function converts Lat and Lon from character to numeric. For dates, it pastes the year, month and day as character and convert it to date. The date conversion works fine for A.D dates, but for B.C. dates, it needs to be changed manually by forcing the year to negative. It also converts TOTAL_DEATHS and EQ_PRIMARY columns to numeric, while changing COUNTRY column to factor. In addition, it calls eq_location_clean to format LOCATION_NAME column.

Usage

1

Arguments

df

raw data frame of earthquake data

Value

df cleansed version of the earthquake data

Examples

1
## Not run: df <- eq_clean_data(df)

wingtham/NOAA documentation built on May 24, 2019, 3:51 p.m.