This function check if data for the year and quarter selected are available at FAERS to be downloaded.
is_year_quarter_available(.year, .quarter)
(num) year for which data are required
(chr) quarter for which data are required, between "q1", "q2", "q3", "q4".
(lgl) FAERS can have data for the .year
and .quarter
required?
is_year_quarter_available(2013, "q1") # TRUE
#> [1] TRUE
is_year_quarter_available(2012, "q1") # FALSE
#> [1] FALSE