steno-aarhus / osdc

Open-Source Diabetes Classifier: an R package to classify diabetes status in Danish registers
https://steno-aarhus.github.io/osdc/
Other
1 stars 1 forks source link

feat: verify required variables in dataset #45

Closed lwjohnst86 closed 6 months ago

lwjohnst86 commented 7 months ago

This is a "stacked PR" that builds on #37.

Adds two functions, along with documentation and tests.

Also created an internal dataset that lists the registers and variables needed. This internal dataset (generated in data-raw/variable-descriptions.R file) is used for other functions to check that the data has the correct variables.

Closes #33