Learn R Programming

CohortCharacteristics (version 1.1.1)

tableCohortCodelist: Create a visual table from <summarised_result> object from summariseCohortCodelist()

Description

[Experimental]

Usage

tableCohortCodelist(result, type = "reactable")

Value

A visual table with the results.

Arguments

result

A summarised_result object.

type

Type of table. Supported types: "gt", "flextable", "tibble", "datatable", "reactable".

Examples

Run this code
# \donttest{
library(CohortCharacteristics)
library(omock)
library(dplyr, warn.conflicts = FALSE)
library(CDMConnector)

cdm <- mockCdmFromDataset(datasetName = "GiBleed", source = "duckdb")

cdm <- generateConceptCohortSet(cdm = cdm,
                                conceptSet = list(pharyngitis = 4112343L),
                                name = "my_cohort")

result <- summariseCohortCodelist(cdm$my_cohort)

tableCohortCodelist(result)
# }

Run the code above in your browser using DataLab