eq_clean_data: Cleaning the NOAA Earthquake Dataset

Description Usage Arguments Value Note Examples

Description

eq_clean_data() takes the raw NOAA data frame and returns a clean data frame, which would be well-behaved with visualise functions in this package.

Usage

1

Arguments

raw_data

A raw data frame obtained from NOAA

Value

A cleaned data frame with date is created by uniting YEAR, MONTH, DAY, LONGITUDE and LATITUDE are converted to numeric

Note

The dataset is included in the package and could be called by data(raw_data). Observations with NA DAY or/and MONTH would take the value of 01. The dataset includes dates BEC (with negative years).

Examples

1
2
3
## Not run: use("raw_data")
data <- eq_clean_data(raw_data)
## End(Not run)

maianhdang/noaa.visualise documentation built on May 22, 2019, 12:23 p.m.