Description Usage Arguments Details Value References Examples
A read data file function into a cleaned version of a data frame.
1 | eq_clean_data(filename)
|
filename |
Is a character string giving the file name of the input data file. |
eq_clean_data
reads a filename from the U.S. National Oceanographic
and Atmospheric Administration (NOAA) on signicant earthquakes around the world,
into a clean version of an R data frame. It stops if the file does not exist.
The cleaned version of the data frame has:
i) the year, month and day converted to the Date class, after dealing with negative years (BCE)
ii) EQ_PRIMARY, TOTAL_DEATHS, YEAR, LATITUDE and LONGITUDE columns converted to numeric class.
iii) A clean LOCATION_NAME column by calling the eq_location_clean function.
A clean version of an R data frame with the NOAA data contained in filename.
https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1
1 2 3 4 5 6 7 8 9 | ## Not run:
eq_clean_data("signif.txt")
## End(Not run)
## Not run:
eq_clean_data()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.