Description Usage Arguments Value Examples
eq_filter_data
filters the earthquakes data to the specified
COUNTRY and DATE values.
1 | eq_filter_data(df, countries, minimum_date, maximum_date)
|
df |
A data frame containing the earthquake data. |
countries |
A character vector of countries to be used to filter the observations. |
minimum_date |
A date value representing the minimum date used to filter observations. |
maximum_date |
A date value representing the maximum date used to filter obvserations. |
A data frame containing the filtered earthquake data. If an error or warning occurs, a message will be printed to the console and the function will return NULL. If the function finds no matching observations, it will return an empty data frame.
1 2 3 4 5 6 7 | ## Not run:
df <- eq_filter_data(df,
countries = c("Usa", "China"),
minimum_date = "2000-01-01",
maximum_date = "2017-12-31")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.