eq_clean_data: Wrapper function to clean the NOAA data, specifically uniting...

Description Usage Arguments Value Examples

View source: R/module1.R

Description

Wrapper function to clean the NOAA data, specifically uniting the YEAR, MONTH and DAY columns, converting the LATITUDE and LONGITUDE columns from character to double and stripping out the country name from the LOCATION_NAME column

Usage

1
eq_clean_data(raw_noaa_df)

Arguments

raw_noaa_df

Dataframe representing the raw NOAA dataset

Value

This function returns a dataframe with an additional column called "date" that combines YEAR, MONTH and DAY columns

Examples

1
2
3
4
## Not run: 
eq_clean_data(noaa.data)

## End(Not run)

shaowei72/RCapstone documentation built on Sept. 19, 2020, 3:37 p.m.