eq_clean_data: Read raw NOAA data of earthquake and returns a clean data...

Description Usage Arguments Value Examples

View source: R/dataproc.R

Description

Read raw NOAA data of earthquake and returns a clean data frame The clean data frame contains: 1. A date column created by uniting the year, month, day and converting it to the Date class 2. LATITUDE and LONGITUDE columns converted to numeric class 3. LOCATION_NAME column by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps). The function eq_location_clean() is integrated into eq_clean_data() function to aviod redundent functions.

Usage

1
2
eq_clean_data(raw_data_fn = file.path(system.file("extdata", package =
  "MasterRcap"), "signif.txt"))

Arguments

raw_data_fn

A path to the raw data filename, default to the signif.txt delivered by the package

Value

A clean data.frame

Examples

1
2
3
4
## Not run: 
  clean_data <- read_eq_clean_data()

## End(Not run)

xxxw567/MasterRcap documentation built on May 29, 2019, 12:17 p.m.