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,349.79 (4,181.68)
median [Q25 - Q75] 2,778 [1,178 - 6,557]
1st Number subjects N 100
Duration in days mean (sd) 4,349.79 (4,181.68)
median [Q25 - Q75] 2,778 [1,178 - 6,557]
PatientProfiles::mockDisconnect(cdm) # }