tests/testthat/_snaps/tinyTable.md

tinytable

Code
  tinytableInternal
Output
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  |                                                                                                                                                             | **Study cohorts**                                                                                                                                                                                                                                                                                                                                               |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  |                                                                                                                                                             | cohort1                                                                                                                                                                        | cohort2                                                                                                                                                                        |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  |                                                                                                                                                             | **Study strata**                                                                                                                                                                                                                                                                                                                                                |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  |                                                                                                                                                             | overall          | age_group &&& sex                                                               | sex                                 | age_group                                                                                                                                                                                                            |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  | **cdm_name** | **group_name** | **variable_name** | **variable_level** | **estimate_name** | **estimate_type** | **additional_name** | **additional_level** | **overall**      | **<40 &&& Male** | **>=40 &&& Male** | **<40 &&& Female** | **>=40 &&& Female** | **Male**         | **Female**       | **<40**          | **>=40**         | **overall**      | **<40 &&& Male** | **>=40 &&& Male** | **<40 &&& Female** | **>=40 &&& Female** | **Male**         | **Female**       | **<40**          | **>=40**         |
  +==============+================+===================+====================+===================+===================+=====================+======================+==================+==================+===================+====================+=====================+==================+==================+==================+==================+==================+==================+===================+====================+=====================+==================+==================+==================+==================+
  | mock         | cohort_name    | number subjects   | NA                 | count             | integer           | overall             | overall              | 2655087          | 3721239          | 5728534           | 9082078            | 2016819             | 8983897          | 9446753          | 6607978          | 6291140          | 617863           | 2059746          | 1765568           | 6870228            | 3841037             | 7698414          | 4976992          | 7176185          | 9919061          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  | mock         | cohort_name    | age               | NA                 | mean              | numeric           | overall             | overall              | 38.0035179434344 | 77.7445221319795 | 93.4705231105909  | 21.2142521282658   | 65.1673766085878    | 12.5555095961317 | 26.7220668727532 | 38.6114092543721 | 1.33903331588954 | 38.2387957070023 | 86.969084572047  | 34.034899668768   | 48.2080115471035   | 59.9565825425088    | 49.3541307048872 | 18.6217601411045 | 82.7373318606988 | 66.8466738192365 |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  | mock         | cohort_name    | age               | NA                 | sd                | numeric           | overall             | overall              | 7.9423986072652  | 1.07943625887856 | 7.23710946040228  | 4.11274429643527   | 8.20946294115856    | 6.47060193819925 | 7.8293276228942  | 5.53036311641335 | 5.29719580197707 | 7.89356231689453 | 0.23331202333793 | 4.77230065036565  | 7.323137386702     | 6.92731556482613    | 4.77619622135535 | 8.612094768323   | 4.38097107224166 | 2.44797277031466 |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  | mock         | cohort_name    | Medications       | Amoxiciline        | count             | integer           | overall             | overall              | 7068             | 9947             | 31627             | 51863              | 66201               | 40683            | 91288            | 29360            | 45907            | 33239            | 65087            | 25802             | 47855              | 76631               | 8425             | 87532            | 33907            | 83944            |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  | mock         | cohort_name    | Medications       | Amoxiciline        | percentage        | percentage        | overall             | overall              | 34.668348915875  | 33.3774930797517 | 47.6351245073602  | 89.2198335845023   | 86.4339470630512    | 38.9989543473348 | 77.7320698834956 | 96.0617997217923 | 43.4659484773874 | 71.2514678714797 | 39.9994368897751 | 32.5352151878178  | 75.7087148027495   | 20.2692255144939    | 71.1121222469956 | 12.1691921027377 | 24.5488513959572 | 14.330437942408  |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  | mock         | cohort_name    | Medications       | Ibuprofen          | count             | integer           | overall             | overall              | 23963            | 5893             | 64229             | 87627              | 77891               | 79731            | 45527            | 41008            | 81087            | 60493            | 65472            | 35320             | 27026              | 99268               | 63349            | 21321            | 12937            | 47812            |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
  | mock         | cohort_name    | Medications       | Ibuprofen          | percentage        | percentage        | overall             | overall              | 92.4074469832703 | 59.876096714288  | 97.6170694921166  | 73.1792511884123   | 35.6726912083104    | 43.1473690550774 | 14.8211560677737 | 1.30775754805654 | 71.5566066093743 | 10.3184235747904 | 44.6284348610789 | 64.0101045137271  | 99.1838620044291   | 49.5593577856198    | 48.4349524369463 | 17.3442334868014 | 75.4820944508538 | 45.3895489219576 |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+------------------+------------------+-------------------+--------------------+---------------------+------------------+------------------+------------------+------------------+
Code
  tinytableInternal
Output
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |                                                                                                                                                             | **strata_name**                                                                                                                                                                                                                                           |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |                                                                                                                                                             | **overall**               | **age_group &&& sex**                                                                                         | **sex**                                               | **age_group**                                         |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |                                                                                                                                                             | **strata_level**                                                                                                                                                                                                                                          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  | **cdm_name** | **group_name** | **variable_name** | **variable_level** | **estimate_name** | **estimate_type** | **additional_name** | **additional_level** | **overall**               | **<40 &&& Male**          | **>=40 &&& Male**         | **<40 &&& Female**        | **>=40 &&& Female**       | **Male**                  | **Female**                | **<40**                   | **>=40**                  |
  +==============+================+===================+====================+===================+===================+=====================+======================+===========================+===========================+===========================+===========================+===========================+===========================+===========================+===========================+===========================+
  | **cohort1**                                                                                                                                                                                                                                                                                                                                                                                                             |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  | mock         | cohort_name    | number subjects   | -                  | N                 | character         | overall             | overall              | 2655087                   | 3721239                   | 5728534                   | 9082078                   | 2016819                   | 8983897                   | 9446753                   | 6607978                   | 6291140                   |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                | age               | -                  | mean              | numeric           | overall             | overall              | 38.0035179434344          | 77.7445221319795          | 93.4705231105909          | 21.2142521282658          | 65.1673766085878          | 12.5555095961317          | 26.7220668727532          | 38.6114092543721          | 1.33903331588954          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                |                   |                    | sd                | numeric           | overall             | overall              | 7.9423986072652           | 1.07943625887856          | 7.23710946040228          | 4.11274429643527          | 8.20946294115856          | 6.47060193819925          | 7.8293276228942           | 5.53036311641335          | 5.29719580197707          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                | Medications       | Amoxiciline        | N (%)             | character         | overall             | overall              | 7068 (34.668348915875%)   | 9947 (33.3774930797517%)  | 31627 (47.6351245073602%) | 51863 (89.2198335845023%) | 66201 (86.4339470630512%) | 40683 (38.9989543473348%) | 91288 (77.7320698834956%) | 29360 (96.0617997217923%) | 45907 (43.4659484773874%) |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                |                   | Ibuprofen          | N (%)             | character         | overall             | overall              | 23963 (92.4074469832703%) | 5893 (59.876096714288%)   | 64229 (97.6170694921166%) | 87627 (73.1792511884123%) | 77891 (35.6726912083104%) | 79731 (43.1473690550774%) | 45527 (14.8211560677737%) | 41008 (1.30775754805654%) | 81087 (71.5566066093743%) |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  | **cohort2**                                                                                                                                                                                                                                                                                                                                                                                                             |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  | mock         | cohort_name    | number subjects   | -                  | N                 | character         | overall             | overall              | 617863                    | 2059746                   | 1765568                   | 6870228                   | 3841037                   | 7698414                   | 4976992                   | 7176185                   | 9919061                   |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                | age               | -                  | mean              | numeric           | overall             | overall              | 38.2387957070023          | 86.969084572047           | 34.034899668768           | 48.2080115471035          | 59.9565825425088          | 49.3541307048872          | 18.6217601411045          | 82.7373318606988          | 66.8466738192365          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                |                   |                    | sd                | numeric           | overall             | overall              | 7.89356231689453          | 0.23331202333793          | 4.77230065036565          | 7.323137386702            | 6.92731556482613          | 4.77619622135535          | 8.612094768323            | 4.38097107224166          | 2.44797277031466          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                | Medications       | Amoxiciline        | N (%)             | character         | overall             | overall              | 33239 (71.2514678714797%) | 65087 (39.9994368897751%) | 25802 (32.5352151878178%) | 47855 (75.7087148027495%) | 76631 (20.2692255144939%) | 8425 (71.1121222469956%)  | 87532 (12.1691921027377%) | 33907 (24.5488513959572%) | 83944 (14.330437942408%)  |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                |                   | Ibuprofen          | N (%)             | character         | overall             | overall              | 60493 (10.3184235747904%) | 65472 (44.6284348610789%) | 35320 (64.0101045137271%) | 27026 (99.1838620044291%) | 99268 (49.5593577856198%) | 63349 (48.4349524369463%) | 21321 (17.3442334868014%) | 12937 (75.4820944508538%) | 47812 (45.3895489219576%) |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  | **cohort3**                                                                                                                                                                                                                                                                                                                                                                                                             |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  | mock         | cohort_name    | number subjects   | -                  | N                 | character         | overall             | overall              | 2655087                   | 3721239                   | 5728534                   | 9082078                   | 2016819                   | 8983897                   | 9446753                   | 6607978                   | 6291140                   |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                | age               | -                  | mean              | numeric           | overall             | overall              | 38.0035179434344          | 77.7445221319795          | 93.4705231105909          | 21.2142521282658          | 65.1673766085878          | 12.5555095961317          | 26.7220668727532          | 38.6114092543721          | 1.33903331588954          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                |                   |                    | sd                | numeric           | overall             | overall              | 7.9423986072652           | 1.07943625887856          | 7.23710946040228          | 4.11274429643527          | 8.20946294115856          | 6.47060193819925          | 7.8293276228942           | 5.53036311641335          | 5.29719580197707          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                | Medications       | Amoxiciline        | N (%)             | character         | overall             | overall              | 7068 (34.668348915875%)   | 9947 (33.3774930797517%)  | 31627 (47.6351245073602%) | 51863 (89.2198335845023%) | 66201 (86.4339470630512%) | 40683 (38.9989543473348%) | 91288 (77.7320698834956%) | 29360 (96.0617997217923%) | 45907 (43.4659484773874%) |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                |                   | Ibuprofen          | N (%)             | character         | overall             | overall              | 23963 (92.4074469832703%) | 5893 (59.876096714288%)   | 64229 (97.6170694921166%) | 87627 (73.1792511884123%) | 77891 (35.6726912083104%) | 79731 (43.1473690550774%) | 45527 (14.8211560677737%) | 41008 (1.30775754805654%) | 81087 (71.5566066093743%) |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  | **cohort4**                                                                                                                                                                                                                                                                                                                                                                                                             |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  | mock         | cohort_name    | number subjects   | -                  | N                 | character         | overall             | overall              | 617863                    | 2059746                   | 1765568                   | 6870228                   | 3841037                   | 7698414                   | 4976992                   | 7176185                   | 9919061                   |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                | age               | -                  | mean              | numeric           | overall             | overall              | 38.2387957070023          | 86.969084572047           | 34.034899668768           | 48.2080115471035          | 59.9565825425088          | 49.3541307048872          | 18.6217601411045          | 82.7373318606988          | 66.8466738192365          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                |                   |                    | sd                | numeric           | overall             | overall              | 7.89356231689453          | 0.23331202333793          | 4.77230065036565          | 7.323137386702            | 6.92731556482613          | 4.77619622135535          | 8.612094768323            | 4.38097107224166          | 2.44797277031466          |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                | Medications       | Amoxiciline        | N (%)             | character         | overall             | overall              | 33239 (71.2514678714797%) | 65087 (39.9994368897751%) | 25802 (32.5352151878178%) | 47855 (75.7087148027495%) | 76631 (20.2692255144939%) | 8425 (71.1121222469956%)  | 87532 (12.1691921027377%) | 33907 (24.5488513959572%) | 83944 (14.330437942408%)  |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  |              |                |                   | Ibuprofen          | N (%)             | character         | overall             | overall              | 60493 (10.3184235747904%) | 65472 (44.6284348610789%) | 35320 (64.0101045137271%) | 27026 (99.1838620044291%) | 99268 (49.5593577856198%) | 63349 (48.4349524369463%) | 21321 (17.3442334868014%) | 12937 (75.4820944508538%) | 47812 (45.3895489219576%) |
  +--------------+----------------+-------------------+--------------------+-------------------+-------------------+---------------------+----------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
  Table: *This* is the caption


Try the visOmopResults package in your browser

Any scripts or data that you put into this service are public.

visOmopResults documentation built on Feb. 4, 2026, 9:07 a.m.