Description Usage Arguments Value Examples
This function reads an Earthquake dataset in a tab-delimited file to clean some of the variables. The function first checks whether the file to be read actually exists.If it does not exist, then it downloads from the NOOA website. Then, the function adds a date column created by uniting the year, month, day of each earthquake and converting it to the Date class. Finally, the function converts the LATITUDE and LONGITUDE columns to numeric class.
1 | eq_clean_data(filename)
|
filename |
A character vector of the name of the tab-delimited file to be read. |
This function returns a clean data frame.
1 2 3 4 | ## Not run:
eq_clean_data("signif.txt")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.