eq_clean_data: Clean and format earthqake data

Description Usage Arguments Details Value Examples

Description

eq_clean_data creates a date class field and converts location coordinates into numeric vectors.

Usage

1

Arguments

data

a data frame holding the earthquake data

Details

The YEAR field ranges from -2000 or 2000 BC to more contemporary times which the usual date functions don't manage well with. This function splits the years into AD and BC and creates a DATE field from the YEAR, MONTH and DAY fields (most of the MONTH and DAY fields for the BC years are NA)

Value

A data frame with the date and location fields formated correctly

Examples

1

sdbecker/shakerr documentation built on May 29, 2019, 4:20 p.m.