eq_clean_data: Cleans NOAA data frame with earthquake related data

Description Usage Arguments Value Examples

Description

It's expected that the data frame is produced by the file_read function. The cleaning is performed in the following way:

  1. Creates the DATE column by uniting the year, month, day and converting it to the Date class

  2. Converts the LATITUDE and LONGITUDE columns to numeric class

  3. Cleans the LOCATION_NAME column by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps)

Usage

1

Arguments

df

a data frame to clean

Value

Cleaned data frame

Examples

1
2

Valentin-Konoshenko/Earthquakes4Coursera documentation built on May 23, 2019, 1:08 p.m.