eq_filter_data: Filter Data

Description Usage Arguments Value Examples

View source: R/eq_cleaning.R

Description

eq_filter_data filters the earthquakes data to the specified COUNTRY and DATE values.

Usage

1
eq_filter_data(df, countries, minimum_date, maximum_date)

Arguments

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.

Value

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.

Examples

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)

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