fix_na_lon_na_lat: fix_na_lon_na_lat

Description Usage Arguments Details Value Examples

Description

Correct the cases with LATITUDE is NA and LONGITUDE is NA.

Usage

1

Arguments

dff

A dataframe containing NOAA Earthquake data

Details

Information about the location of those earthquakes was found using the geocode function from ggmap package. The dataframe generated by the geocode function was saved in the file "nulllatlong.rds". For the cases where the geocode function could not find the location of the earthquakes, the following documents were used (sites):

Value

A date frame (with those cases corrected)

Examples

1
2
3
4
5
6
dfnew <- load_data()
dfnew <- dplyr::mutate(dfnew, LATITUDE=as.numeric(LATITUDE))
dfnew <- dplyr::mutate(dfnew, LONGITUDE=as.numeric(LONGITUDE))
dfnew <- dplyr::mutate(dfnew, EQ_PRIMARY=as.numeric(EQ_PRIMARY))
dfnew <- dplyr::mutate(dfnew, DEATHS=as.numeric(DEATHS))
dfnew <- fix_na_lon_na_lat(dfnew)

constantin345/NOOA documentation built on May 16, 2019, 7:09 p.m.