tableCohortAttrition: Create a visual table from the output of...

View source: R/tableCohortAttrition.R

tableCohortAttritionR Documentation

Create a visual table from the output of summariseCohortAttrition.

Description

[Experimental]

Usage

tableCohortAttrition(
  result,
  type = "gt",
  header = "variable_name",
  groupColumn = c("cdm_name", "cohort_name"),
  hide = c("variable_level", "reason_id", "estimate_name")
)

Arguments

result

A summarised_result object. Output of summariseCohortAttrition().

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 visual table.

Examples


library(CohortCharacteristics)

cdm <- mockCohortCharacteristics()

result <- summariseCohortAttrition(cdm$cohort2)

tableCohortAttrition(result)

mockDisconnect(cdm)



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