eq_clean_data: Prepares a NOAA data frame by adding a DATE column and...

Description Usage Arguments Value Examples

View source: R/clean_data.R

Description

Prepares a NOAA data frame by adding a DATE column and converting data types of existing columns.

Usage

1
eq_clean_data(raw_noaa_df)

Arguments

raw_noaa_df

This is the raw data frame read in directly from the NOAA csv file.

Value

The clean data frame with DATE column and correct data types.

Examples

1
2
3
raw_df <- readr::read_delim(file = system.file("extdata", "signif.txt", package="noaa"),
                                               delim = "\t")
clean_df <- eq_clean_data(raw_df)

chrpihl/noaa documentation built on May 25, 2019, 3:26 p.m.