Description Usage Arguments Details Value See Also Examples
View source: R/read_and_clean_NOAA_data.R
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
1 | eq_clean_data(raw_data)
|
raw_data |
dbl_df dataframe input data frame |
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
dbl_df dataframe
eq_build_date eq_build_location
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.