eq_clean_data: Cleanup Earthquake Data

Description Usage Arguments Value Examples

Description

This functions cleans up data from the NOAA significant earthquake database. The cleanup includes building a single date field and removing BCE dates since POSIXlt dates do not work well with pre 1 CE dates.

Usage

1
2
3
eq_clean_data(raw_data, YEAR = "YEAR", MONTH = "MONTH", DAY = "DAY",
  LONGITUDE = "LONGITUDE", LATITUDE = "LATITUDE",
  MAGNITUDE = "EQ_PRIMARY", DEATH = "DEATHS")

Arguments

raw_data

The earthquake dataframe that needs to be cleaned.

YEAR

The name of the column that holds the year of the earthquake as a numeric/integer.

MONTH

The name of the column that holds the month of the earthquake as a numeric/integer.

DAY

The name of the column that holds the day of the month of earthquake as a numeric/integer.

LONGITUDE

The longitude of the earthquake - numeric.

LATITUDE

The latitude of the earthquake - numeric.

MAGNITUDE

The latitude of the earthquake - numeric or character.

DEATH

The latitude of the earthquake - numeric or character.

Value

A cleaned up dataframe with the new date column.

Examples

1
2

kjsykora/earthquake documentation built on May 29, 2019, 3:38 a.m.