This function check if data for the year and quarter selected are available at FAERS to be downloaded.

is_year_quarter_available(.year, .quarter)

Arguments

.year

(num) year for which data are required

.quarter

(chr) quarter for which data are required, between "q1", "q2", "q3", "q4".

Value

(lgl) FAERS can have data for the .year and .quarter required?

Examples

is_year_quarter_available(2013, "q1")  # TRUE
#> [1] TRUE
is_year_quarter_available(2012, "q1")  # FALSE
#> [1] FALSE