Description Usage Arguments Value Examples
This function filters the earthquake data data
-
generated by U.S. National Oceanographic and Atmospheric Administration
(NOAA) database - based on specified minimum date xmindate
,
maximum date xmaxdate
and country country
.
1 | filter_date_and_country(data, xmindate, xmaxdate, country)
|
data |
A preproccessed tibble (data.frame) of NOAA earthquakes dataset |
xmindate |
a character vector indicating the mininum date specified for earthquakes time line plotting. Should follow the format of YYYY-MM-DD. |
xmaxdate |
a character vector indicating the maximum date specified for earthquakes time line plotting. Should follow the format of YYYY-MM-DD. |
country |
a vector of character strings for the countries of interest. By default it shows earthquake data related to USA. |
This function returns a tibble (data.frame)
1 2 3 | NOAA_clean_data = eq_clean_data("https://www.ngdc.noaa.gov/nndc/struts/results?type_0=Exact&query_0=$ID&t=101650&s=13&d=189&dfn=signif.txt")
NOAA_filtered = filter_date_and_country(NOAA_clean_data, xmindate = "1999-01-01", xmaxdate = "2017-12-31", country = c("CHINA", "USA"))
head(NOAA_filtered)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.