eq_clean_data: eq_clean_data

Description Usage Arguments Value Examples

Description

This function returns the raw NOAA data frame with a new DATE column (of class date) added by combining the MONTH, YEAR, and DAY fields (MONTHS and DAYS with NA are replaced to 01). Furthermore, the rows with NA YEAR, or YEAR < 0 are removed. The LATITUDE and LONGITUDE fields are converted to numeric type, and the LOCATION_NAME fixing (from the eq_location_clean function) is implemented.

Usage

1

Arguments

dset

Dataset depicting the raw NOAA data frame.

Value

This function returns a dataframe with the NOAA data frame cleaned.

Examples

1
2
3
4
5
6
7
## Not run: 

dataset = read_delim("data/signif.txt", delim = "\t")
dataset = eq_clean_data(dataset)


## End(Not run)

ronybsulca/earthquakeGeoms documentation built on May 6, 2019, 5:03 p.m.