eq_clean_data: Clean latitude, longitude, and date in NOAA significant...

Description Usage Arguments Value Imported functions Examples

Description

A function that builds a date field and ensures that the longitude and latitude of the earthquake location are numeric. The function takes in the NOAA data, which is obtained from https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1) and returns a data frame with a valid date field and numeric longitude and latitude.

Usage

1

Arguments

noaa_data

NOAA significant earthquakes dataset

Value

A data.frame, data.table with updated longitude, latitude, and date variables.

Imported functions

data.table syntax

Examples

1
2
3
library(data.table)
raw_noaa <- as.data.table(noaa_data)
clean_noaa <- eq_clean_data(raw_noaa)

marksendak/MsdrCapstoneMPS documentation built on May 23, 2019, 7:33 a.m.