eq_clean_data: Clean NOAA data

Description Usage Arguments Value Examples

Description

Takes raw NOAA data frame and returns a clean data frame.

Usage

1
eq_clean_data(raw_data)

Arguments

raw_data

the name of the file to read (character)

Value

a clean data frame with the following columns: date: type Date with year, month and day LATITUDE: numeric LONGITUDE: numeric

Examples

1
2
3
4
5
## Not run: 
eq_raw_file <- file.path("inst", "extdata", "signif.txt")
eq_raw_data <- read_tsv(eq_raw_file, skip = 1)
eq_clean <- eq_clean_data(eq_raw_data) 
## End(Not run)

clems/NoaaCS documentation built on May 12, 2019, 1:59 p.m.