tableCohortOverlap: Format a summariseOverlapCohort result into a visual table.

View source: R/tableCohortOverlap.R

tableCohortOverlapR Documentation

Format a summariseOverlapCohort result into a visual table.

Description

[Experimental]

Usage

tableCohortOverlap(
  result,
  uniqueCombinations = TRUE,
  type = "gt",
  header = c("variable_name"),
  groupColumn = c("cdm_name"),
  hide = c("variable_level")
)

Arguments

result

A summariseOverlapCohort result.

uniqueCombinations

Whether to display unique combinations reference - comparator.

type

Type of table. Check supported types with visOmopResults::tableType().

header

Columns to use as header. See options with tidyColumns(result).

groupColumn

Columns to group by. See options with tidyColumns(result).

hide

Columns to hide from the visualisation. See options with tidyColumns(result).

Value

A formatted table of the summariseOverlapCohort result.

Examples


library(CohortCharacteristics)
cdm <- mockCohortCharacteristics()
overlap <- summariseCohortOverlap(cdm$cohort2)
tableCohortOverlap(overlap)
mockDisconnect(cdm = cdm)



CohortCharacteristics documentation built on Oct. 1, 2024, 5:08 p.m.