eq_clean_data: Clean Data

Description Usage Arguments Value Examples

Description

Adds a DATE column and changes the type of LATITUDE and LONGITUDE column to numeric. Also pads zeros to make YEAR columns four digits.

Usage

1

Arguments

data

a data.frame containing NOAA earthquake data.

Value

A data.frame with DATE column in POSIXct format and LATITUDE and LONGITUDE column in numeric class.

Examples

1
2
3
4
5
## Not run: 
noaa.df <- eq_clean_data(readr::read_tsv("data-raw/signif.txt"))
noaa.df <- eq_clean_data(raw.noaa.df)

## End(Not run)

GopalSeshadri/NOAA documentation built on May 30, 2019, 7:59 p.m.