GithubHelp home page GithubHelp logo

c19rdata's People

Contributors

ar0ch avatar freyja-bt avatar

Watchers

 avatar  avatar

Forkers

freyja-bt

c19rdata's Issues

Dates

Suggest reporting dates as reported per region in the data, rather than the date that the data is pulled:

cur_date <- lubridate::ymd(gsub("-", "", Sys.Date())) - 1

Will be helpful to do this in general in the case that datasets become deprecated.

Vaccination data issue

Hi, @ar0ch and @freyja-bt.
The output of this operation produces entries with a date of NA (for some counties) at the tail of those counties entries

vacc_data <- vacc_data %>%

e.g. looking at Los Angeles county
tail(vacc_data_fill[which(vacc_data_fill$county=="6037"),])

# A tibble: 6 x 5
  date       county cnt_fully_vacc last_date  is_last
  <date>      <dbl>          <dbl> <date>     <lgl>  
1 2021-12-12   6037       6752641. 2021-12-07 FALSE  
2 2021-12-13   6037       6766574. 2021-12-07 FALSE  
3 2021-12-14   6037       6780506. 2021-12-07 FALSE  
4 2021-12-15   6037       6794438  2021-12-15 FALSE  
5 2021-12-16   6037      12463202. 2021-12-15 FALSE  
6 NA           6037      18131967  2021-12-15 FALSE

This causes downstream issues for those counties in which an NA date is recorded.

Suggest adding something to the effect of
vacc_data = vacc_data[-which(is.na(vacc_data$date)),]
at L93

which instead produces:
tail(vacc_data_fill[which(vacc_data_fill$county=="6037"),])

# A tibble: 6 x 5
  date       county cnt_fully_vacc last_date  is_last
  <date>      <dbl>          <dbl> <date>     <lgl>  
1 2021-12-11   6037       6738709  2021-12-07 FALSE  
2 2021-12-12   6037       6752641. 2021-12-07 FALSE  
3 2021-12-13   6037       6766574. 2021-12-07 FALSE  
4 2021-12-14   6037       6780506. 2021-12-07 FALSE  
5 2021-12-15   6037       6794438  2021-12-15 FALSE  
6 2021-12-16   6037       6794438  2021-12-15 TRUE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.