Skip to content

Commit

Permalink
Merge pull request #269 from OHDSI/issue_261
Browse files Browse the repository at this point in the history
Update tableMissingData.R
  • Loading branch information
catalamarti authored Dec 16, 2024
2 parents 38c0b96 + 7fb4f25 commit 48f1f02
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions R/tableMissingData.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ tableMissingData <- function(result,
}

result |>
formatColumn(c("variable_name", "variable_level")) |>
visOmopResults::visOmopTable(
type = type,
estimateName = c(
"N (%)" = "<na_percentage> (%)",
"N" = "<na_count>"),
estimateName = c("N missing data (%)" = "<na_count> (<na_percentage>%)"),
header = c("cdm_name"),
rename = c("Database name" = "cdm_name"),
groupColumn = c("omop_table", omopgenerics::strataColumns(result))
rename = c("Database name" = "cdm_name", "Column name"= "variable_name"),
groupColumn = c("omop_table", omopgenerics::strataColumns(result)),
hide = c("variable_level")
)
}

0 comments on commit 48f1f02

Please sign in to comment.