Skip to content

Commit

Permalink
Merge pull request #285 from OHDSI/notes
Browse files Browse the repository at this point in the history
Update mockOmopSketch.R
  • Loading branch information
cecicampanile authored Jan 7, 2025
2 parents f82be40 + fb7f5c1 commit 6569a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mockOmopSketch.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ checkColumns <- function(cdm_local){
for (table in names(cdm_local)){
cols <- info |>
dplyr::filter(.data$cdm_table_name == table)|>
dplyr::select(cdm_field_name,cdm_datatype)
dplyr::select("cdm_field_name","cdm_datatype")

missing_cols <- cols|>
dplyr::filter(!(cdm_field_name %in% colnames(cdm_local[[table]])))
dplyr::filter(!(.data$cdm_field_name %in% colnames(cdm_local[[table]])))

if (nrow(missing_cols) > 0) {

Expand Down

0 comments on commit 6569a7f

Please sign in to comment.