Skip to content

covid_hosp_state_timeseries silently ignores as_of parameter #209

@brookslogan

Description

@brookslogan
library(epidatr)
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
pub_covid_hosp_state_timeseries(
  "ut", epirange(12340101, 34560101),
  as_of = 20220101,
  fetch_args = fetch_args_list(
    fields = c("state","geocoded_state","date","issue","previous_day_admission_influenza_confirmed","previous_day_admission_influenza_confirmed_coverage"),
    disable_date_parsing = TRUE
  )
) |>
  count(issue)
#> # A tibble: 1 × 2
#>      issue     n
#>      <int> <int>
#> 1 20231103  1318
# see URL:
pub_covid_hosp_state_timeseries(
  "ut", epirange(12340101, 34560101),
  as_of = 20220101,
  fetch_args = fetch_args_list(
    fields = c("state","geocoded_state","date","issue","previous_day_admission_influenza_confirmed","previous_day_admission_influenza_confirmed_coverage"),
    disable_date_parsing = TRUE,
    dry_run = TRUE
  )
)
#> 
#> ── <epidata_call> object: ──────────────────────────────────────────────────────
#> • Pipe this object into `fetch()` to actually fetch the data
#> • Request URL:
#>   https://api.delphi.cmu.edu/epidata/covid_hosp_state_timeseries/?states=ut&dates=12340101-34560101

Created on 2023-11-06 with reprex v2.0.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions