eq_count_events: Events By Country and Date Range

Description Usage Arguments Value Examples

View source: R/eq_cleaning.R

Description

eq_count_events assembles a summary data frame showing a count of earthquakes for each country for a given date range.

Usage

1
eq_count_events(df, minimum_date, maximum_date)

Arguments

df

A data frame containing the earthquake data.

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.

Value

A data frame containing the count of earthquakes by country in descending order by count. If an error or warning occurs, a message will be printed to the console and the function will return NULL.

Examples

1
2
3
4
5
6
## Not run: 
df <- eq_count_events(df,
                      minimum_date = "2000-01-01",
                      maximum_date = "2017-12-31")

## End(Not run)

dtminnick/earthquake documentation built on Nov. 4, 2019, 11:04 a.m.