Skip to contents

[Experimental]

Usage

tableCohortCount(
  result,
  type = "gt",
  header = "cohort_name",
  groupColumn = NULL,
  hide = "variable_level"
)

Arguments

result

A summarise_characteristics object.

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 table with a formatted version of the summariseCohortCount result result.

Examples

# \donttest{
library(CohortCharacteristics)

cdm <- mockCohortCharacteristics()

result <- summariseCohortCount(cdm$cohort1)
#>  summarising data
#>  summariseCharacteristics finished!

tableCohortCount(result)
#> ! Results have not been suppressed.
CDM name Variable name Estimate name
Cohort name
cohort_1 cohort_2 cohort_3
PP_MOCK Number records N 2 5 3
Number subjects N 2 5 3
mockDisconnect(cdm = cdm) # }