Description Usage Arguments Value References Examples
View source: R/eq_clean_data.R
After downloading and reading in the dataset, the overall task for this
module is to write a function named eq_clean_data()
that 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
and LONGITUDE
columns converted to numeric class.
1 |
df |
A data frame with the raw NOAA earthquake data. |
A cleaned data frame.
1 2 3 4 | ## Not run:
eq_clean_data(df)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.