eq_clean_data: Perform the cleaning of the NOAA data

Description Usage Arguments Details Value See Also Examples

View source: R/read_and_clean_NOAA_data.R

Description

Process the data to obtain the followning features:

* DATE: date of the earthquake

* LONGITUDE, LATITUDE: gps coordinates of the earthquake

* LOCATION_NAME: Location of the earthquake

* COUNTRY: Country where the earthquke occured

* DEATHS: Number of fatalities due to the earthquakes and related events

* MAG: Richter (equivalent) of the maginitude of the earthquake

Usage

1
eq_clean_data(raw_data)

Arguments

raw_data

dbl_df dataframe input data frame

Details

Features YEAR, MONTH and DAY are selected to define the feature DATE through function eq_build_date. Feature LOCATION_NAME is processed through package function eq_build_location.

Select features: LONGITUDE, LATITUDE, COUNTRY, LOCATION_NAME to define location. LOCATION_NAME

Selected features TOTAL_DEATHS and EQ_RPIMARY are left unchanged but renamed DEATHS and MAG

Value

dbl_df dataframe

See Also

eq_build_date eq_build_location

Examples

1
2
3
4
5
6
## Not run: 
source_noaa <- system.file("extdata","signif.txt",package="NOAAsignifEarthQuakes",mustWork=TRUE)
noaa_raw <- load_NOAA_db(source_noaa)
noaa_raw %>% eq_clean_data()

## End(Not run)

BreizhZut/NOAAsignifEarthQuakes documentation built on Nov. 10, 2019, 3:45 p.m.