Skip to content
New issue

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

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

Already on GitHub? # to your account

getAdmn1ByCountry output is not equal to getEpiData #92

Open
watronfire opened this issue Jul 13, 2022 · 0 comments
Open

getAdmn1ByCountry output is not equal to getEpiData #92

watronfire opened this issue Jul 13, 2022 · 0 comments

Comments

@watronfire
Copy link

I'm trying to get daily cases and deaths for all states in the US. However, I've found that the output of getAdmin1ByCountry is not as complete as the output of getEpiData for an individual state. See the below example involving Nevada:

> library( outbreakinfo )
Warning message:
replacing previous import ‘jsonlite::flatten’ by ‘purrr::flatten’ when loading ‘outbreakinfo’
> 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

> nv <- getEpiData( "Nevada", admin_level = 1 )
  downloading [==============================] 100% eta:  0s

> dim( nv )
[1] 880  56
> nv_admin <- getAdmn1ByCountry("United States of America") %>% filter( name=="Nevada" )
  downloading [==============>---------------]  51% eta:  3m
> dim( nv_admin )
[1] 300  57

I think the problem is that the output of getAdmin1ByCountry seems to be capped at 26,000 rows, and the expected output would be ~44,000 rows.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant