eq_clean_data: Clean data function: 'eq_clean_data()'

Description Usage Arguments Value Examples

Description

This function takes raw NOAA data frame and returns a clean data frame. The clean data frame should have the following: A date column created by uniting the year, month, day and converting it to the Date class, LATITUDE, LONGITUDE, EQ_PRIMARY(magnitude) and TOTAL_DEATHS columns converted to numeric class. The rows whose LATITUDE, LONGITUDE or EQ_PRIMARY is missing (NA) are removed.

Usage

1

Arguments

raw_df

A data frame of raw data.

Value

A data frame of clean data

Examples

1
2
3
4
5
## Not run: 
data(raw_df)
clean_df <- eq_clean_data(raw_df)

## End(Not run)

atibot/eqplot documentation built on May 17, 2019, 4 p.m.