Description Usage Arguments Value Notes See Also Examples
eq_clean_data
processes the following variables in the NOAA's raw
database in order to create the date of each reported earthquake: YEAR,
MONTH, and DAY. So too, it transforms to numeric
the variables
with the latitude (LATITUDE), longitude (LONGITUDE), magnitude (EQ_PRIMARY),
and total deaths (TOTAL_DEATHS) to make easier the data analysis.
1 |
data |
A data frame or tibble object with the information about the earthquakes' occurrence: YEAR, MONTH, and DAY. In addition, the dataset must have the variables with the quakes' latitude, longitude, magnitude, and total deaths. |
Returns a tibble
object with the quake's date (the DATE
variable) and changes to
numeric type the variables described above.
One of the benefits of using this function is that it converts dates B.C.E.
into the Date
class; futhermore, when the month or/and day is/are
missing, the date is approximated at the midpoint of the period.
eq_location_clean
for process the location name
variable.
1 2 | raw_data <- download_earthquake_data()
clean_data <- eq_clean_data(raw_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.