pub_covidcast("nchs-mortality", "deaths_flu_incidence_prop", geo_type = "state", time_type = "week", geo_values="*", time_values = epirange(200006, 202508))
# Error in charToDate(x) :
# character string is not in a standard unambiguous format
# Timing stopped at: 0.17 0 0.734
A similar call where time_values are provided as dates rather than epiweeks succeeds, but doesn't return any data.
From
the call URL is: https://api.delphi.cmu.edu/epidata/covidcast/?data_source=nchs-mortality&signals=deaths_flu_incidence_prop&geo_type=state&time_type=week&geo_values=%2A&time_values=200006-202508, which successfully fetches data.
But running not as
dry_run
, the same call failsA similar call where
time_values
are provided as dates rather than epiweeks succeeds, but doesn't return any data.The corresponding URL doesn't return any data.
So it seems that our input
time_values
are expected to be in "YYYYMMDD" format, but NCHS Mortality needs "YYYYWW" format to get data.