eq_clean_data: Clean the dataframe then create and add a DATE column.

Description Usage Arguments Value Source Examples

Description

This function generates a DATE column and add in to the cleaned dataframe and it changes the class of the variables LATITUDE, LONGITUDE, EQ_PRIMARY and DEATHS to numeric.

Usage

1
eq_clean_data(raw_df)

Arguments

This

function takes the cleaned dataframe as inputs.

Value

This function creates a cleaned dataframe and returns a tibble.

Source

This function calls the function eq_location_clean() within it.

Examples

1
2
3
4
5
6
## Not run: 
filename<-system.file("extdata","data.gz",package="NOAAA")
readr::read_delim(filename, delim = "\t") %>%
eq_clean_data()

## End(Not run)

shubh-b/NOAAA documentation built on May 21, 2019, 2:31 a.m.