Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in using the years argument to get_cdc_hosp #232

Open
vpnagraj opened this issue Dec 26, 2024 · 0 comments
Open

error in using the years argument to get_cdc_hosp #232

vpnagraj opened this issue Dec 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vpnagraj
Copy link
Collaborator

the data retrieval from the get_cdc_hosp() function is failing when the "years" argument is used:

library(fiphde)

get_cdc_hosp(years = 2019)
#> 
#> Error in `dplyr::filter()` at fiphde/R/retrieve.R:736:5:
#> ℹ In argument: `season %in% years`.
#> Caused by error:
#> ! object 'season' not found
get_cdc_hosp(years = "2019")
#> 
#> Error in `dplyr::filter()` at fiphde/R/retrieve.R:736:5:
#> ℹ In argument: `season %in% years`.
#> Caused by error:
#> ! object 'season' not found
get_cdc_hosp(years = "2019-20")
#> Warning in hospitalizations(surveillance_area = "flusurv", region = "all", :
#> NAs introduced by coercion
#> 
#> Error in `dplyr::filter()` at fiphde/R/retrieve.R:736:5:
#> ℹ In argument: `season %in% years`.
#> Caused by error:
#> ! object 'season' not found
get_cdc_hosp(years = "2019-2020")
#> Warning in hospitalizations(surveillance_area = "flusurv", region = "all", :
#> NAs introduced by coercion
#> 
#> Error in `dplyr::filter()` at fiphde/R/retrieve.R:736:5:
#> ℹ In argument: `season %in% years`.
#> Caused by error:
#> ! object 'season' not found
@vpnagraj vpnagraj added the bug Something isn't working label Dec 26, 2024
@vpnagraj vpnagraj self-assigned this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant