Recent Releases of https://github.com/cdcgov/savir

https://github.com/cdcgov/savir - Version 0.4.0

What's Changed

  • Handing HK, Taiwan data moving forward by @beansrowning in https://github.com/CDCgov/SaviR/pull/84
  • Adding calcwindowpctchange() and updating trendmap() by @beansrowning in https://github.com/CDCgov/SaviR/pull/87
  • Additional dev changes for 14d+ switch by @beansrowning in https://github.com/CDCgov/SaviR/pull/92
  • Fixing slice in table_10percentchange by @beansrowning in https://github.com/CDCgov/SaviR/pull/97
  • Updating calcwindowincidence by @beansrowning in https://github.com/CDCgov/SaviR/pull/98
  • Updating map_burden by @beansrowning in https://github.com/CDCgov/SaviR/pull/99
  • Updating pct_change and incidence window calculations by @beansrowning in https://github.com/CDCgov/SaviR/pull/100
  • quick fix for burden maps to avoid bbox issues introduced by previous commit by @beansrowning in https://github.com/CDCgov/SaviR/pull/101
  • Changes from dev by @beansrowning in https://github.com/CDCgov/SaviR/pull/103
  • HOTFIX: Updating trend map to drop infinite values by @beansrowning in https://github.com/CDCgov/SaviR/pull/106
  • Adding Azure functionality to some data read functions by @beansrowning in https://github.com/CDCgov/SaviR/pull/105

Full Changelog: https://github.com/CDCgov/SaviR/compare/v0.31...v0.4.0

- R
Published by beansrowning about 3 years ago

https://github.com/cdcgov/savir - Version 0.3.1

Issues

  • Closes #90
  • Closes #88
  • Closes #89

Changes

Fixed a random Rd issue with get_onetable() due to dropped }

No more warnings.

New Burden Map

```r burdenmapglobal14 <- dfboth |> filter(date <= sundaydate) |> mapburden(time_step = 14)

burdenmapglobal_14 ``` image

  • Updated API:
    • Updating region and adding time_step argument to allow this to vary
    • Created internal function calc_window_incidence(), which computes average incidence interally
    • No more creating breaks externally and passing in
    • Improved docs

Updated Trend Map

  • Refined API to be in-line with map_burden
    • All computation done within function via calc_window_pct_change(), not outside and passed in
  • Updated docs

r df_both |> filter(date <= sunday_date) |> map_trend(time_step = 14) image

Major overhaul of case tables API

  • Combined docs into one shared Rd file image
  • Tables now compute all values internally, greatly reducing complexity in using them and utilizing the same helper functions for the above maps
  • Updated documentation in vignette

Examples

r df_both |> filter(date <= sunday_date) |> table_10mostcases(time_step = 14) image

r df_both |> filter(date <= sunday_date) |> table_10incidence(time_step = 14) image

r df_both %>% filter(date <= sunday_date, population >= 10000000) |> table_10percentchange(time_step = 14) image

Caching R dependencies in CI pipeline for faster runs

- R
Published by beansrowning over 3 years ago

https://github.com/cdcgov/savir - Version 0.3

Changes

  • See #83, #84
  • Implemented gethkdata() and gettaiwandata() as internal functions to return case and death time series data from HK CHP and Taiwan CDC respectively
  • Updated OWID source in data source lookup
  • getcoviddf() now accepts a sources argument
    • "all": the default, returns JHU, WHO, Taiwan CDC, HK CHP
    • "WHO": WHO data as-is (china aggregated counts and no supplemental data)
    • "WHO+JHU": the "old" version containing WHO + JHU disaggregated data
    • "WHO+Primary": WHO data plus HK data from HK CHP, Taiwan data from Taiwan CDC, and Macau data from JHU thru Mar 10, 2023
  • getcombinedtable() was reworked internally to handle new data sources
  • type argument for getcombinedtable() was changed to accept a new type: "legacy", which returns what "Both" used to return previously (though the JHU data won't be updated and China Mainland data haven't been updated in some time)
  • "Both" type for getcombinedtable() now returns case and death data from get_covid_df("WHO+Primary")
  • Updated docs accordingly

- R
Published by beansrowning over 3 years ago

https://github.com/cdcgov/savir - Version 0.2

Changes

  • #15
  • #18
  • #17
  • #19
  • #21
  • #23
  • Adding getcombinedtable() to return joined onetable, getcoviddf(), getvax(), and calcadd_risk()
  • #35
  • #36
  • #37

See the high level changes in this article: https://cdcgov.github.io/SaviR/articles/savirversion0.2apichanges.html

- R
Published by beansrowning over 4 years ago