eq_clean_data: DATE Column Creation

Description Usage Arguments Value Examples

View source: R/capcode.R

Description

This function takes a data frame, ideally from the NOAA Significant Earthquakes dataset, and creates a DATE column. It also coerses LATITUDE and LONGITUDE into numerics. This function is meant to be used in the geoms of this package, so it does not need to be exported.

Usage

1

Arguments

data

A data frame with YEAR, MONTH, DAY, LONGITUDE and LATITUDE columns.

Value

A data frame with a new column named DATE, combining the three columns into "

Examples

1
2
3
## Not run: load("data/data.rda")
data<-eq_clean_data(data)
## End(Not run)

thechibo/earthquakes documentation built on April 15, 2020, 4:56 p.m.