diseasystore 0.3.1
CRAN release: 2025-02-28
Breaking change
-
DiseasystoreBase$key_join_features()no longer accept character stratifications – must userlang::quos()(#203).
Minor Improvements and Fixes
The
$observable_regexfield is added, which shows the regex that demarcates observables from stratifications (#204).Improved clean up of temporary tables (#207). Tables created internally in
diseasystoreare now labelled and removed when no longer needed.In
DiseasystoreBase$key_join_features(), stratifications no longer need to do computation on other features (#203).
diseasystore 0.3.0
CRAN release: 2024-12-11
Breaking change
- Additional arguments (
...) are now passed to the$compute()and$get()functions in?FeatureHandler(#162). Furthermore, a reference to thediseasystoreis now passed to$compute()asdsto give the?FeatureHandleraccess to other features via$get_feature().
New Features
New age helpers
add_years()andage_on_date()has been added to help compute features for individual data (#125).Added the fields
$available_observablesand$available_featuresfor easier overview (#139).The data availability period for each
diseasystoreis now exposed via the$min_start_dateand$max_end_datefields (#138).diseasystorescan now have variable backend support (#175). In case a backend is insufficient to support the computations, the backend can be blocked for thediseasystore.test_diseasystore()now have askip_backendargument to skip tests for the disallowed backends.Added the
?DiseasystoreSimulistwhich implements a synthetic, individual-level, data set generated withsimulist.
Minor Improvements and Fixes
A bug was fixed where data was duplicated when features were not divided into separate tables (#192).
-
Two bugs were fixed in
$determine_new_ranges()where existing tables were not detected: Long stratification expression are now properly parsed in
$key_join_features()(#161).When creating your own
diseasystoreit is now easier to inherit from the base module (#189).When creating your own
diseasystoreit is now easier to inherit from the base module (#189).Warnings about existing stratifications now only appear if the requested stratification contains a named expression matching an existing stratification. Simply requesting the stratification from the feature store will no longer produce a warning (#192).
-
diseasyoption()can now be called without theoptionargument to return alldiseasy/diseasystoreoptions (#159).In addition, a new
namespaceargument can restrict the option look-up to a specific package (e.g.diseasystore).
Testing
-
test_diseasystore()now also checks the?FeatureHandlerreturn data directly:
Documentation
An example has been added for building a
diseasystorewith individual level data (#162). Seevignette("extending-diseasystore-example").Added benchmarking vignette
vignette("benchmarks")(#144).
diseasystore 0.2.2
CRAN release: 2024-07-15
Minor Improvements and Fixes
- The
%.%operator is made more flexible to function as a drop-in replacement for$(#145).
diseasystore 0.2.0
CRAN release: 2024-03-20
New Features
?DiseasystoreEcdcRespiratoryViruses: A feature store that uses the ECDC Respiratory viruses weekly repository (#124).-
With the release of SCDB v0.4, we now support more database backends:
test_diseasystore()is added to provide a standardised method for testing new diseasystores (#123).
Minor Improvements and Fixes
-
diseasyoption()now allows a default option to be set with the.defaultargument (#122).
diseasystore 0.1.1
CRAN release: 2024-01-18
Fixes
Improved the stability of internal functions.
Adapted to release of SCDB v0.3.
diseasystore 0.1
CRAN release: 2023-12-20
Features
-
?DiseasystoreBase: A base class for the diseasystores.- R6 class that defines the interface for the diseasystores.
-
?DiseasystoreGoogleCovid19: A feature store that uses the Google COVID-19 Open Data repository.- R6 class that builds on the base class to provide interface to the Google COVID-19 data.
-
?FeatureHandler: A simple class to handle individual feature computations.- Defines the interface for each individual feature in the diseasystores.
Aggregators: A set of aggregators for the
?FeatureHandlerto use.drop_diseasystore(): A function to remove data from a feature store.-
Added a informative operator to access data
%.%.- Gives error instead of
NULLif element does not exist.
- Gives error instead of
age_labels(): A function to generate human-readable and sortable age groupings.
Documentation
The functions are fully documented.
-
Vignettes for the use of the package is included.
vignette("quick-start")vignette("extending-diseasystore")
-
Vignette for the Google COVID-19 data is included.
