eq_clean_data: Cleaning raw NOAA data frame and returning a clean data frame

Description Usage Arguments Details Value Examples

View source: R/eq_clean_data.R

Description

Cleaning raw NOAA data frame and returning a clean data frame

Usage

1

Arguments

df

A raw data frame containing eqrthquake data from NOAA website

Details

In order to use this function, one has to obtain the NOAA data from https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1. The function returns a cleaned data frame with cleaned columns: date,LONGITUDE,LATITUDE,DEATHS. The date column is converted into date-format and the LONGITUDE,LATITUDE,DEATHS are converted into numeric types. The function utilizes the function eq_location_clean.

Value

A clean data frame with cleaned date, latitude,longitude and death columns

Examples

1
2
3
4
5
## Not run: 
data <- readr::read_delim("signif.txt", delim = "\t")
data <- eq_clean_data(data)

## End(Not run)

mkaywins/Capstone_project documentation built on Feb. 24, 2020, 8:36 p.m.