-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle analysis of categorical concepts (#32)
* add analyse_categorical_column() untested because afaik we haven't yet set up access to test data with populated observation and measurement tables * fix logic bug with passing 'value' and simplify slightly. Don't need to filter NA because CDM specifies NULL or 0 * fix 2nd logic bug, need to retain columns (actually only value_as_concept_id) in first step * fix logic bug in argument order, move collect to end. Still seem to get Error in UseMethod("select") : no applicable method for 'select' applied to an object of class "NULL" Probably due to {{ concept }} tidy evaluation ? * seems to be working now on independent test data :-) fixed another logic bug, simplified logic * Update dev/omop_analyses/analyse_omop_cdm.R trying commit directly from Github Co-authored-by: Stef Piatek <[email protected]> * completing table rename started on Github fron Stef's suggestion * Format and simplify code * Update spellcheck wordlist * Fix: set correct name for attribute value * Remove clean up steps from scripts Cleaning up should be left to the caller * Ensure database connections are clossed on exit, even if script fails * Pull `analyse_*_column` helpers out of main function * Make `analyse_categorical_column` more consistent with `analyse_numerical_column` * Rename helper functions * Refactor `analyse_*` functions * Add concept names to summary table (#33) * Add concept names to monthly counts table (#33) Fixes #33 * Rename functions * Fix comments * Remove NA values when calculating mean and sd * Fix column selection * Add concept names to result tables (#33) --------- Co-authored-by: South <[email protected]> Co-authored-by: Stef Piatek <[email protected]> Co-authored-by: Milan Malfait <[email protected]>
- Loading branch information
1 parent
43d0c9c
commit 5e95393
Showing
4 changed files
with
98 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
CMD | ||
Catalogue | ||
Lifecycle | ||
OMOP | ||
RStudio | ||
UI | ||
catalogue | ||
duckdb | ||
golem | ||
lockfile | ||
tidyverse |