eq_country_filter: Filter the NOAA dataset by countries and time range

Description Usage Arguments Value Note Examples

Description

eq_country_filter() returns the data specifically for called countries, in the timeline from xmin to xmax

Usage

1
eq_country_filter(data, countries, xmin, xmax)

Arguments

data

A data frame with relevant columns

countries

A character vectors with the names of considered countries

xmin

The beginning of considered timeline, as a date object

xmax

The ending of considered timeline, as a date object

Value

A subset of the inputed data frame

Note

The xmin and xmax must be date object (see: lubridate::ymd())

Examples

1
2
3
4
5
## Not run: input_data <- eq_country_filter(data,
c("INDIA", "THAILAND"),
xmin = as.Date("1800-01-01"),
xmax = as.Date("2010-01-01"))
## End(Not run)

maianhdang/noaa.visualise documentation built on May 22, 2019, 12:23 p.m.