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

County level - location_code is missing #24

Open
RamiKrispin opened this issue May 19, 2020 · 0 comments
Open

County level - location_code is missing #24

RamiKrispin opened this issue May 19, 2020 · 0 comments

Comments

@RamiKrispin
Copy link
Member

Hi @jebyrnes
I noticed in the county data, that some rows are missing the location code (NYC, Kansas City, etc.). Generally, I think that in some of those cases, the data was not available on the county level, so they provided the aggregated city level. Here is an example:

library(covid19nytimes)


df <- refresh_covid19nytimes_counties()

df %>% dplyr::filter(date == as.Date("2020-05-18"), is.na(location_code)) %>%
  dplyr::arrange(-value) %>%
  head(10)


# A tibble: 10 x 7
   date       location               location_type location_code location_code_type data_type     value
   <date>     <chr>                  <chr>         <chr>         <chr>              <chr>         <dbl>
 1 2020-05-18 New York City,New York county        NA            fips_code          cases_total  198114
 2 2020-05-18 New York City,New York county        NA            fips_code          deaths_total  20298
 3 2020-05-18 Unknown,Michigan       county        NA            fips_code          cases_total    3171
 4 2020-05-18 Unknown,Puerto Rico    county        NA            fips_code          cases_total    2710
 5 2020-05-18 Unknown,Georgia        county        NA            fips_code          cases_total    2216
 6 2020-05-18 Unknown,Rhode Island   county        NA            fips_code          cases_total    2006
 7 2020-05-18 Unknown,Guam           county        NA            fips_code          cases_total    1123
 8 2020-05-18 Kansas City,Missouri   county        NA            fips_code          cases_total     901
 9 2020-05-18 Unknown,New Jersey     county        NA            fips_code          cases_total     835
10 2020-05-18 Unknown,Massachusetts  county        NA            fips_code          cases_total     312

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

No branches or pull requests

1 participant