Skip to contents

Create a visual table from a summariseObservationPeriod() result.

Usage

tableObservationPeriod(result, type = "gt")

Arguments

result

A summarised_result object.

type

Type of formatting output table, either "gt" or "flextable".

Value

A gt or flextable object with the summarised data.

Examples

# \donttest{
cdm <- mockOmopSketch(numberIndividuals = 100)

result <- summariseObservationPeriod(cdm$observation_period)

tableObservationPeriod(result)
Observation period ordinal Variable name Estimate name
CDM name
mockOmopSketch
all Number records N 100
Number subjects N 100
Records per person mean (sd) 1.00 (0.00)
median [Q25 - Q75] 1 [1 - 1]
Duration in days mean (sd) 4,824.71 (4,332.39)
median [Q25 - Q75] 3,238 [1,196 - 7,602]
1st Number subjects N 100
Duration in days mean (sd) 4,824.71 (4,332.39)
median [Q25 - Q75] 3,238 [1,196 - 7,602]
PatientProfiles::mockDisconnect(cdm) # }