eq_clean_data: Clean NOAA earthquake data

Description Usage Arguments Value Note Examples

View source: R/data_preparation.R

Description

This function adds a date column to the NOAA significant earthquake date and converts longtitude and latitude to numeric

Usage

1

Arguments

data

a dataframe with raw data from the significant earthquake database. This data can be retrieved by the function get_eq_data()

Value

This function returns the NOAA earthquake data with an added date column and coordinates converted to numeric class.

Note

If no month or day is available it is automatically set to 1.

Examples

1
2
3
4
5
6
## Not run: 

clean_data <- eq_clean_data(raw_data)
clean_data <- eq_clean_data(get_eq_data())

## End(Not run)

RedTent/earthquakeJT documentation built on May 25, 2019, 1:25 p.m.