Skip to contents

Visualise the results of summarisePerson() into a table

Usage

tablePerson(result, type = "gt")

Arguments

result

A summarised_result object created by summarisePerson().

type

One of the supported visualisation formats (see visOmopResults::tableType()).

Value

A table visualisation.

Examples

# \donttest{
library(OmopSketch)

cdm <- mockOmopSketch(numberIndividuals = 100)

result <- summarisePerson(cdm = cdm)

tablePerson(result = result)
Variable name Variable level Estimate name
CDM name
mockOmopSketch
Number subjects - N 100
Number subjects not in observation - N (%) 0 (0.00%)
Sex Female N (%) 57 (57.00%)
Male N (%) 43 (43.00%)
None N (%) 0 (0.00%)
Sex source Missing N (%) 100 (100.00%)
Race Missing N (%) 100 (100.00%)
Race source Missing N (%) 100 (100.00%)
Ethnicity Missing N (%) 100 (100.00%)
Ethnicity source Missing N (%) 100 (100.00%)
Year of birth - Missing N (%) 0 (0.00%)
Median [Q25 - Q75] 1,976 [1,958 - 1,989]
Q05 - Q95 1,951 - 1,997
Range 1,950 to 2,000
Month of birth - Missing N (%) 0 (0.00%)
Median [Q25 - Q75] 6 [3 - 10]
Q05 - Q95 1 - 12
Range 1 to 12
Day of birth - Missing N (%) 0 (0.00%)
Median [Q25 - Q75] 16 [8 - 24]
Q05 - Q95 2 - 30
Range 1 to 31
Location - Zeros N (%) 0 (0.00%)
Missing N (%) 100 (100.00%)
Distinct values 1
Provider - Zeros N (%) 0 (0.00%)
Missing N (%) 100 (100.00%)
Distinct values 1
Care site - Zeros N (%) 0 (0.00%)
Missing N (%) 100 (100.00%)
Distinct values 1
# }