-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1550 lines (1430 loc) · 246 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en"><head>
<script src="index_files/libs/clipboard/clipboard.min.js"></script>
<script src="index_files/libs/quarto-html/tabby.min.js"></script>
<script src="index_files/libs/quarto-html/popper.min.js"></script>
<script src="index_files/libs/quarto-html/tippy.umd.min.js"></script>
<link href="index_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="index_files/libs/quarto-html/light-border.css" rel="stylesheet">
<link href="index_files/libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
<link href="index_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
<meta name="generator" content="quarto-1.3.361">
<title>Clinical Tables with ‘flextable’, ‘tables’ and ‘rtables’</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="index_files/libs/revealjs/dist/reset.css">
<link rel="stylesheet" href="index_files/libs/revealjs/dist/reveal.css">
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
}
pre.numberSource { margin-left: 3em; padding-left: 4px; }
div.sourceCode
{ color: #24292e; }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span { color: #24292e; } /* Normal */
code span.al { color: #ff5555; font-weight: bold; } /* Alert */
code span.an { color: #6a737d; } /* Annotation */
code span.at { color: #d73a49; } /* Attribute */
code span.bn { color: #005cc5; } /* BaseN */
code span.bu { color: #d73a49; } /* BuiltIn */
code span.cf { color: #d73a49; } /* ControlFlow */
code span.ch { color: #032f62; } /* Char */
code span.cn { color: #005cc5; } /* Constant */
code span.co { color: #6a737d; } /* Comment */
code span.cv { color: #6a737d; } /* CommentVar */
code span.do { color: #6a737d; } /* Documentation */
code span.dt { color: #d73a49; } /* DataType */
code span.dv { color: #005cc5; } /* DecVal */
code span.er { color: #ff5555; text-decoration: underline; } /* Error */
code span.ex { color: #d73a49; font-weight: bold; } /* Extension */
code span.fl { color: #005cc5; } /* Float */
code span.fu { color: #6f42c1; } /* Function */
code span.im { color: #032f62; } /* Import */
code span.in { color: #6a737d; } /* Information */
code span.kw { color: #d73a49; } /* Keyword */
code span.op { color: #24292e; } /* Operator */
code span.ot { color: #6f42c1; } /* Other */
code span.pp { color: #d73a49; } /* Preprocessor */
code span.re { color: #6a737d; } /* RegionMarker */
code span.sc { color: #005cc5; } /* SpecialChar */
code span.ss { color: #032f62; } /* SpecialString */
code span.st { color: #032f62; } /* String */
code span.va { color: #e36209; } /* Variable */
code span.vs { color: #032f62; } /* VerbatimString */
code span.wa { color: #ff5555; } /* Warning */
/* CSS for citations */
div.csl-bib-body { }
div.csl-entry {
clear: both;
}
.hanging-indent div.csl-entry {
margin-left:2em;
text-indent:-2em;
}
div.csl-left-margin {
min-width:2em;
float:left;
}
div.csl-right-inline {
margin-left:2em;
padding-left:1em;
}
div.csl-indent {
margin-left: 2em;
} </style>
<link rel="stylesheet" href="index_files/libs/revealjs/dist/theme/quarto.css">
<link href="index_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.css" rel="stylesheet">
<link href="index_files/libs/revealjs/plugin/reveal-menu/menu.css" rel="stylesheet">
<link href="index_files/libs/revealjs/plugin/reveal-menu/quarto-menu.css" rel="stylesheet">
<link href="index_files/libs/revealjs/plugin/quarto-support/footer.css" rel="stylesheet">
<style type="text/css">
.callout {
margin-top: 1em;
margin-bottom: 1em;
border-radius: .25rem;
}
.callout.callout-style-simple {
padding: 0em 0.5em;
border-left: solid #acacac .3rem;
border-right: solid 1px silver;
border-top: solid 1px silver;
border-bottom: solid 1px silver;
display: flex;
}
.callout.callout-style-default {
border-left: solid #acacac .3rem;
border-right: solid 1px silver;
border-top: solid 1px silver;
border-bottom: solid 1px silver;
}
.callout .callout-body-container {
flex-grow: 1;
}
.callout.callout-style-simple .callout-body {
font-size: 1rem;
font-weight: 400;
}
.callout.callout-style-default .callout-body {
font-size: 0.9rem;
font-weight: 400;
}
.callout.callout-titled.callout-style-simple .callout-body {
margin-top: 0.2em;
}
.callout:not(.callout-titled) .callout-body {
display: flex;
}
.callout:not(.no-icon).callout-titled.callout-style-simple .callout-content {
padding-left: 1.6em;
}
.callout.callout-titled .callout-header {
padding-top: 0.2em;
margin-bottom: -0.2em;
}
.callout.callout-titled .callout-title p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.callout.callout-titled.callout-style-simple .callout-content p {
margin-top: 0;
}
.callout.callout-titled.callout-style-default .callout-content p {
margin-top: 0.7em;
}
.callout.callout-style-simple div.callout-title {
border-bottom: none;
font-size: .9rem;
font-weight: 600;
opacity: 75%;
}
.callout.callout-style-default div.callout-title {
border-bottom: none;
font-weight: 600;
opacity: 85%;
font-size: 0.9rem;
padding-left: 0.5em;
padding-right: 0.5em;
}
.callout.callout-style-default div.callout-content {
padding-left: 0.5em;
padding-right: 0.5em;
}
.callout.callout-style-simple .callout-icon::before {
height: 1rem;
width: 1rem;
display: inline-block;
content: "";
background-repeat: no-repeat;
background-size: 1rem 1rem;
}
.callout.callout-style-default .callout-icon::before {
height: 0.9rem;
width: 0.9rem;
display: inline-block;
content: "";
background-repeat: no-repeat;
background-size: 0.9rem 0.9rem;
}
.callout-title {
display: flex
}
.callout-icon::before {
margin-top: 1rem;
padding-right: .5rem;
}
.callout.no-icon::before {
display: none !important;
}
.callout.callout-titled .callout-body > .callout-content > :last-child {
margin-bottom: 0.5rem;
}
.callout.callout-titled .callout-icon::before {
margin-top: .5rem;
padding-right: .5rem;
}
.callout:not(.callout-titled) .callout-icon::before {
margin-top: 1rem;
padding-right: .5rem;
}
/* Callout Types */
div.callout-note {
border-left-color: #4582ec !important;
}
div.callout-note .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAEU0lEQVRYCcVXTWhcVRQ+586kSUMMxkyaElstCto2SIhitS5Ek8xUKV2poatCcVHtUlFQk8mbaaziwpWgglJwVaquitBOfhQXFlqlzSJpFSpIYyXNjBNiTCck7x2/8/LeNDOZxDuEkgOXe++553zfefee+/OYLOXFk3+1LLrRdiO81yNqZ6K9cG0P3MeFaMIQjXssE8Z1JzLO9ls20MBZX7oG8w9GxB0goaPrW5aNMp1yOZIa7Wv6o2ykpLtmAPs/vrG14Z+6d4jpbSKuhdcSyq9wGMPXjonwmESXrriLzFGOdDBLB8Y6MNYBu0dRokSygMA/mrun8MGFN3behm6VVAwg4WR3i6FvYK1T7MHo9BK7ydH+1uurECoouk5MPRyVSBrBHMYwVobG2aOXM07sWrn5qgB60rc6mcwIDJtQrnrEr44kmy+UO9r0u9O5/YbkS9juQckLed3DyW2XV/qWBBB3ptvI8EUY3I9p/67OW+g967TNr3Sotn3IuVlfMLVnsBwH4fsnebJvyGm5GeIUA3jljERmrv49SizPYuq+z7c2H/jlGC+Ghhupn/hcapqmcudB9jwJ/3jvnvu6vu5lVzF1fXyZuZZ7U8nRmVzytvT+H3kilYvH09mLWrQdwFSsFEsxFVs5fK7A0g8gMZjbif4ACpKbjv7gNGaD8bUrlk8x+KRflttr22JEMRUbTUwwDQScyzPgedQHZT0xnx7ujw2jfVfExwYHwOsDTjLdJ2ebmeQIlJ7neo41s/DrsL3kl+W2lWvAga0tR3zueGr6GL78M3ifH0rGXrBC2aAR8uYcIA5gwV8zIE8onoh8u0Fca/ciF7j1uOzEnqcIm59sEXoGc0+z6+H45V1CvAvHcD7THztu669cnp+L0okAeIc6zjbM/24LgGM1gZk7jnRu1aQWoU9sfUOuhrmtaPIO3YY1KLLWZaEO5TKUbMY5zx8W9UJ6elpLwKXbsaZ4EFl7B4bMtDv0iRipKoDQT2sNQI9b1utXFdYisi+wzZ/ri/1m7QfDgEuvgUUEIJPq3DhX/5DWNqIXDOweC2wvIR90Oq3lDpdMIgD2r0dXvGdsEW5H6x6HLRJYU7C69VefO1x8Gde1ZFSJLfWS1jbCnhtOPxmpfv2LXOA2Xk2tvnwKKPFuZ/oRmwBwqRQDcKNeVQkYcOjtWVBuM/JuYw5b6isojIkYxyYAFn5K7ZBF10fea52y8QltAg6jnMqNHFBmGkQ1j+U43HMi2xMar1Nv0zGsf1s8nUsmUtPOOrbFIR8bHFDMB5zL13Gmr/kGlCkUzedTzzmzsaJXhYawnA3UmARpiYj5ooJZiUoxFRtK3X6pgNPv+IZVPcnwbOl6f+aBaO1CNvPW9n9LmCp01nuSaTRF2YxHqZ8DYQT6WsXT+RD6eUztwYLZ8rM+rcPxamv1VQzFUkzFXvkiVrySGQgJNvXHJAxiU3/NwiC03rSf05VBaPtu/Z7/B8Yn/w7eguloAAAAAElFTkSuQmCC');
}
div.callout-note.callout-style-default .callout-title {
background-color: #dae6fb
}
div.callout-important {
border-left-color: #d9534f !important;
}
div.callout-important .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAEKklEQVRYCcVXTWhcVRS+575MJym48A+hSRFr00ySRQhURRfd2HYjk2SSTokuBCkU2o0LoSKKraKIBTcuFCoidGFD08nkBzdREbpQ1EDNIv8qSGMFUboImMSZd4/f9zJv8ibJMC8xJQfO3HPPPef7zrvvvnvviIkpC9nsw0UttFunbUhpFzFtarSd6WJkStVMw5xyVqYTvkwfzuf/5FgtkVoB0729j1rjXwThS7Vio+Mo6DNnvLfahoZ+i/o32lULuJ3NNiz7q6+pyAUkJaFF6JwaM2lUJlV0MlnQn5aTRbEu0SEqHUa0A4AdiGuB1kFXRfVyg5d87+Dg4DL6m2TLAub60ilj7A1Ec4odSAc8X95sHh7+ZRPCFo6Fnp7HfU/fBng/hi10CjCnWnJjsxvDNxWw0NfV6Rv5GgP3I3jGWXumdTD/3cbEOP2ZbOZp69yniG3FQ9z1jD7bnBu9Fc2tKGC2q+uAJOQHBDRiZX1x36o7fWBs7J9ownbtO+n0/qWkvW7UPIfc37WgT6ZGR++EOJyeQDSb9UB+DZ1G6DdLDzyS+b/kBCYGsYgJbSQHuThGKRcw5xdeQf8YdNHsc6ePXrlSYMBuSIAFTGAtQo+VuALo4BX83N190NWZWbynBjhOHsmNfFWLeL6v+ynsA58zDvvAC8j5PkbOcXCMg2PZFk3q8MjI7WAG/Dp9AwP7jdGBOOQkAvlFUB+irtm16I1Zw9YBcpGTGXYmk3kQIC/Cds55l+iMI3jqhjAuaoe+am2Jw5GT3Nbz3CkE12NavmzN5+erJW7046n/CH1RO/RVa8lBLozXk9uqykkGAyRXLWlLv5jyp4RFsG5vGVzpDLnIjTWgnRy2Rr+tDKvRc7Y8AyZq10jj8DqXdnIRNtFZb+t/ZRtXcDiVnzpqx8mPcDWxgARUqx0W1QB9MeUZiNrV4qP+Ehc+BpNgATsTX8ozYKL2NtFYAHc84fG7ndxUPr+AR/iQSns7uSUufAymwDOb2+NjK27lEFocm/EE2WpyIy/Hi66MWuMKJn8RvxIcj87IM5Vh9663ziW36kR0HNenXuxmfaD8JC7tfKbrhFr7LiZCrMjrzTeGx+PmkosrkNzW94ObzwocJ7A1HokLolY+AvkTiD/q1H0cN48c5EL8Crkttsa/AXQVDmutfyku0E7jShx49XqV3MFK8IryDhYVbj7Sj2P2eBxwcXoe8T8idsKKPRcnZw1b+slFTubwUwhktrfnAt7J++jwQtLZcm3sr9LQrjRzz6cfMv9aLvgmnAGvpoaGLxM4mAEaLV7iAzQ3oU0IvD5x9ix3yF2RAAuYAOO2f7PEFWCXZ4C9Pb2UsgDeVnFSpbFK7/IWu7TPTvBqzbGdCHOJQSxiEjt6IyZmxQyEJHv6xyQsYk//moVFsN2zP6fRImjfq7/n/wFDguUQFNEwugAAAABJRU5ErkJggg==');
}
div.callout-important.callout-style-default .callout-title {
background-color: #f7dddc
}
div.callout-warning {
border-left-color: #f0ad4e !important;
}
div.callout-warning .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAETklEQVRYCeVWW2gcVRg+58yaTUnizqbipZeX4uWhBEniBaoUX1Ioze52t7sRq6APio9V9MEaoWlVsFasRq0gltaAPuxms8lu0gcviE/FFOstVbSIxgcv6SU7EZqmdc7v9+9mJtNks51NTUH84ed889/PP+cmxP+d5FIbMJmNbpREu4WUkiTtCicKny0l1pIKmBzovF2S+hIJHX8iEu3hZJ5lNZGqyRrGSIQpq15AzF28jgpeY6yk6GVdrfFqdrD6Iw+QlB8g0YS2g7dyQmXM/IDhBhT0UCiRf59lfqmmDvzRt6kByV/m4JjtzuaujMUM2c5Z2d6JdKrRb3K2q6mA+oYVz8JnDdKPmmNthzkAk/lN63sYPgevrguc72aZX/L9C6x09GYyxBgCX4NlvyGUHOKELlm5rXeR1kchuChJt4SSwyddZRXgvwMGvYo4QSlk3/zkHD8UHxwVJA6zjZZqP8v8kK8OWLnIZtLyCAJagYC4rTGW/9Pqj92N/c+LUaAj27movwbi19tk/whRCIE7Q9vyI6yvRpftAKVTdUjOW40X3h5OXsKCdmFcx0xlLJoSuQngnrJe7Kcjm4OMq9FlC7CMmScQANuNvjfP3PjGXDBaUQmbp296S5L4DrpbrHN1T87ZVEZVCzg1FF0Ft+dKrlLukI+/c9ENo+TvlTDbYFvuKPtQ9+l052rXrgKoWkDAFnvh0wTOmYn8R5f4k/jN/fZiCM1tQx9jQQ4ANhqG4hiL0qIFTGViG9DKB7GYzgubnpofgYRwO+DFjh0Zin2m4b/97EDkXkc+f6xYAPX0KK2I/7fUQuwzuwo/L3AkcjugPNixC8cHf0FyPjWlItmLxWw4Ou9YsQCr5fijMGoD/zpdRy95HRysyXA74MWOnscpO4j2y3HAVisw85hX5+AFBRSHt4ShfLFkIMXTqyKFc46xdzQM6XbAi702a7sy04J0+feReMFKp5q9esYLCqAZYw/k14E/xcLLsFElaornTuJB0svMuJINy8xkIYuL+xPAlWRceH6+HX7THJ0djLUom46zREu7tTkxwmf/FdOZ/sh6Q8qvEAiHpm4PJ4a/doJe0gH1t+aHRgCzOvBvJedEK5OFE5jpm4AGP2a8Dxe3gGJ/pAutug9Gp6he92CsSsWBaEcxGx0FHytmIpuqGkOpldqNYQK8cSoXvd+xLxXADw0kf6UkJNFtdo5MOgaLjiQOQHcn+A6h5NuL2s0qsC2LOM75PcF3yr5STuBSAcGG+meA14K/CI21HcS4LBT6tv0QAh8Dr5l93AhZzG5ZJ4VxAqdZUEl9z7WJ4aN+svMvwHHL21UKTd1mqvChH7/Za5xzXBBKrUcB0TQ+Ulgkfbi/H/YT5EptrGzsEK7tR1B7ln9BBwckYfMiuSqklSznIuoIIOM42MQO+QnduCoFCI0bpkzjCjddHPN/F+2Yu+sd9bKNpVwHhbS3LluK/0zgfwD0xYI5dXuzlQAAAABJRU5ErkJggg==');
}
div.callout-warning.callout-style-default .callout-title {
background-color: #fcefdc
}
div.callout-tip {
border-left-color: #02b875 !important;
}
div.callout-tip .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAADr0lEQVRYCe1XTWgTQRj9ZjZV8a9SPIkKgj8I1bMHsUWrqYLVg4Ue6v9BwZOxSYsIerFao7UiUryIqJcqgtpimhbBXoSCVxUFe9CTiogUrUp2Pt+3aUI2u5vdNh4dmMzOzHvvezuz8xNFM0mjnbXaNu1MvFWRXkXEyE6aYOYJpdW4IXuA4r0fo8qqSMDBU0v1HJUgVieAXxzCsdE/YJTdFcVIZQNMyhruOMJKXYFoLfIfIvVIMWdsrd+Rpd86ZmyzzjJmLStqRn0v8lzkb4rVIXvnpScOJuAn2ACC65FkPzEdEy4TPWRLJ2h7z4cArXzzaOdKlbOvKKX25Wl00jSnrwVxAg3o4dRxhO13RBSdNvH0xSARv3adTXbBdTf64IWO2vH0LT+cv4GR1DJt+DUItaQogeBX/chhbTBxEiZ6gftlDNXTrvT7co4ub5A6gp9HIcHvzTa46OS5fBeP87Qm0fQkr4FsYgVQ7Qg+ZayaDg9jhg1GkWj8RG6lkeSacrrHgDaxdoBiZPg+NXV/KifMuB6//JmYH4CntVEHy/keA6x4h4CU5oFy8GzrBS18cLJMXcljAKB6INjWsRcuZBWVaS3GDrqB7rdapVIeA+isQ57Eev9eCqzqOa81CY05VLd6SamW2wA2H3SiTbnbSxmzfp7WtKZkqy4mdyAlGx7ennghYf8voqp9cLSgKdqNfa6RdRsAAkPwRuJZNbpByn+RrJi1RXTwdi8RQF6ymDwGMAtZ6TVE+4uoKh+MYkcLsT0Hk8eAienbiGdjJHZTpmNjlbFJNKDVAp2fJlYju6IreQxQ08UJDNYdoLSl6AadO+fFuCQqVMB1NJwPm69T04Wv5WhfcWyfXQB+wXRs1pt+nCknRa0LVzSA/2B+a9+zQJadb7IyyV24YAxKp2Jqs3emZTuNnKxsah+uabKbMk7CbTgJx/zIgQYErIeTKRQ9yD9wxVof5YolPHqaWo7TD6tJlh7jQnK5z2n3+fGdggIOx2kaa2YI9QWarc5Ce1ipNWMKeSG4DysFF52KBmTNMmn5HqCFkwy34rDg05gDwgH3bBi+sgFhN/e8QvRn8kbamCOhgrZ9GJhFDgfcMHzFb6BAtjKpFhzTjwv1KCVuxHvCbsSiEz4CANnj84cwHdFXAbAOJ4LTSAawGWFn5tDhLMYz6nWeU2wJfIhmIJBefcd/A5FWQWGgrWzyORZ3Q6HuV+Jf0Bj+BTX69fm1zWgK7By1YTXchFDORywnfQ7GpzOo6S+qECrsx2ifVQAAAABJRU5ErkJggg==');
}
div.callout-tip.callout-style-default .callout-title {
background-color: #ccf1e3
}
div.callout-caution {
border-left-color: #fd7e14 !important;
}
div.callout-caution .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAACV0lEQVRYCdVWzWoUQRCuqp2ICBLJXgITZL1EfQDBW/bkzUMUD7klD+ATSHBEfAIfQO+iXsWDxJsHL96EHAwhgzlkg8nBg25XWb0zIb0zs9muYYWkoKeru+vn664fBqElyZNuyh167NXJ8Ut8McjbmEraKHkd7uAnAFku+VWdb3reSmRV8PKSLfZ0Gjn3a6Xlcq9YGb6tADjn+lUfTXtVmaZ1KwBIvFI11rRXlWlatwIAAv2asaa9mlB9wwygiDX26qaw1yYPzFXg2N1GgG0FMF8Oj+VIx7E/03lHx8UhvYyNZLN7BwSPgekXXLribw7w5/c8EF+DBK5idvDVYtEEwMeYefjjLAdEyQ3M9nfOkgnPTEkYU+sxMq0BxNR6jExrAI31H1rzvLEfRIdgcv1XEdj6QTQAS2wtstEALLG1yEZ3QhH6oDX7ExBSFEkFINXH98NTrme5IOaaA7kIfiu2L8A3qhH9zRbukdCqdsA98TdElyeMe5BI8Rs2xHRIsoTSSVFfCFCWGPn9XHb4cdobRIWABNf0add9jakDjQJpJ1bTXOJXnnRXHRf+dNL1ZV1MBRCXhMbaHqGI1JkKIL7+i8uffuP6wVQAzO7+qVEbF6NbS0LJureYcWXUUhH66nLR5rYmva+2tjRFtojkM2aD76HEGAD3tPtKM309FJg5j/K682ywcWJ3PASCcycH/22u+Bh7Aa0ehM2Fu4z0SAE81HF9RkB21c5bEn4Dzw+/qNOyXr3DCTQDMBOdhi4nAgiFDGCinIa2owCEChUwD8qzd03PG+qdW/4fDzjUMcE1ZpIAAAAASUVORK5CYII=');
}
div.callout-caution.callout-style-default .callout-title {
background-color: #ffe5d0
}
</style>
<style type="text/css">
.reveal div.sourceCode {
margin: 0;
overflow: auto;
}
.reveal div.hanging-indent {
margin-left: 1em;
text-indent: -1em;
}
.reveal .slide:not(.center) {
height: 100%;
}
.reveal .slide.scrollable {
overflow-y: auto;
}
.reveal .footnotes {
height: 100%;
overflow-y: auto;
}
.reveal .slide .absolute {
position: absolute;
display: block;
}
.reveal .footnotes ol {
counter-reset: ol;
list-style-type: none;
margin-left: 0;
}
.reveal .footnotes ol li:before {
counter-increment: ol;
content: counter(ol) ". ";
}
.reveal .footnotes ol li > p:first-child {
display: inline-block;
}
.reveal .slide ul,
.reveal .slide ol {
margin-bottom: 0.5em;
}
.reveal .slide ul li,
.reveal .slide ol li {
margin-top: 0.4em;
margin-bottom: 0.2em;
}
.reveal .slide ul[role="tablist"] li {
margin-bottom: 0;
}
.reveal .slide ul li > *:first-child,
.reveal .slide ol li > *:first-child {
margin-block-start: 0;
}
.reveal .slide ul li > *:last-child,
.reveal .slide ol li > *:last-child {
margin-block-end: 0;
}
.reveal .slide .columns:nth-child(3) {
margin-block-start: 0.8em;
}
.reveal blockquote {
box-shadow: none;
}
.reveal .tippy-content>* {
margin-top: 0.2em;
margin-bottom: 0.7em;
}
.reveal .tippy-content>*:last-child {
margin-bottom: 0.2em;
}
.reveal .slide > img.stretch.quarto-figure-center,
.reveal .slide > img.r-stretch.quarto-figure-center {
display: block;
margin-left: auto;
margin-right: auto;
}
.reveal .slide > img.stretch.quarto-figure-left,
.reveal .slide > img.r-stretch.quarto-figure-left {
display: block;
margin-left: 0;
margin-right: auto;
}
.reveal .slide > img.stretch.quarto-figure-right,
.reveal .slide > img.r-stretch.quarto-figure-right {
display: block;
margin-left: auto;
margin-right: 0;
}
</style>
<link href="index_files/libs/tabwid-1.1.3/tabwid.css" rel="stylesheet">
<script src="index_files/libs/tabwid-1.1.3/tabwid.js"></script>
<link href="index_files/libs/open-sans-0.3.4/css/open-sans.css" rel="stylesheet">
</head>
<body class="quarto-light">
<div class="reveal">
<div class="slides">
<section id="title-slide" data-background-color="#0097c3" data-background-image="assets/img/flextablelogo.svg" data-background-size="contain" class="quarto-title-block center">
<h1 class="title">Clinical Tables with ‘flextable’, ‘tables’ and ‘rtables’</h1>
<div class="quarto-title-authors">
</div>
</section>
<section>
<section id="flextable-package" class="title-slide slide level1 center">
<h1>‘flextable’ package</h1>
<p>The primary goal of ‘flextable’<span class="citation" data-cites="R-flextable">(<a href="#/thank-you" role="doc-biblioref" onclick="">Gohel and Skintzos 2023</a>, <a href="#/thank-you" role="doc-biblioref" onclick="">website</a>)</span> is to provide a versatile and efficient solution for creating and formatting tables in R.</p>
<p>It aims to make table creation and customization easier by offering a flexible and user-friendly interface within the R environment. The package offers extensive capabilities for creating table structure, format content, and appearance.</p>
<div class="columns">
<div class="column" style="width:60%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1"></a>ft <span class="ot"><-</span> <span class="fu">summarizor</span>(cars) <span class="sc">|></span> </span>
<span id="cb1-2"><a href="#cb1-2"></a> <span class="fu">as_flextable</span>(<span class="at">sep_w=</span><span class="dv">0</span>) <span class="sc">|></span> </span>
<span id="cb1-3"><a href="#cb1-3"></a> <span class="fu">color</span>(<span class="at">i =</span> <span class="sc">~</span>stat <span class="sc">==</span> <span class="st">"range"</span>, </span>
<span id="cb1-4"><a href="#cb1-4"></a> <span class="at">color =</span> <span class="st">"pink"</span>) <span class="sc">|></span> </span>
<span id="cb1-5"><a href="#cb1-5"></a> <span class="fu">bold</span>(<span class="at">j =</span> <span class="dv">1</span>) <span class="sc">|></span> </span>
<span id="cb1-6"><a href="#cb1-6"></a> <span class="fu">italic</span>(<span class="at">j =</span> <span class="dv">2</span>, <span class="at">italic =</span> <span class="cn">TRUE</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div><div class="column" style="width:40%;">
<div class="cell">
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d1ae22fc{}.cl-d187e178{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d187e18c{font-family:'Open Sans';font-size:10pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d187e18d{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d187e196{font-family:'Open Sans';font-size:10pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(255, 192, 203, 1.00);background-color:transparent;}.cl-d187e1a0{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(255, 192, 203, 1.00);background-color:transparent;}.cl-d187e1a1{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(255, 192, 203, 1.00);background-color:transparent;}.cl-d1a86862{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d1a8686c{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d1a8686d{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d1a86876{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d1a88680{width:0.582in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a8868a{width:1.026in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a88694{width:0.857in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a88695{width:0.582in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a88696{width:1.026in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a8869e{width:0.857in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a8869f{width:0.582in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a886a0{width:1.026in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a886a8{width:0.857in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a886a9{width:0.582in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a886b2{width:1.026in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a886b3{width:0.857in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a886bc{width:0.582in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a886bd{width:1.026in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d1a886be{width:0.857in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d1ae22fc"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d1a88680"><p class="cl-d1a86862"><span class="cl-d187e178"></span></p></th><th class="cl-d1a8868a"><p class="cl-d1a86862"><span class="cl-d187e178"></span></p></th><th class="cl-d1a88694"><p class="cl-d1a8686c"><span class="cl-d187e178">Statistic</span><br><span class="cl-d187e178">(N=50)</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td rowspan="3" class="cl-d1a88695"><p class="cl-d1a8686d"><span class="cl-d187e18c">speed</span></p></td><td class="cl-d1a88696"><p class="cl-d1a8686d"><span class="cl-d187e18d">Mean (SD)</span></p></td><td class="cl-d1a8869e"><p class="cl-d1a86876"><span class="cl-d187e178">15.4 (5.3)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d1a88696"><p class="cl-d1a8686d"><span class="cl-d187e18d">Median (IQR)</span></p></td><td class="cl-d1a8869e"><p class="cl-d1a86876"><span class="cl-d187e178">15.0 (7.0)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d1a88696"><p class="cl-d1a8686d"><span class="cl-d187e1a0">Range</span></p></td><td class="cl-d1a8869e"><p class="cl-d1a86876"><span class="cl-d187e1a1">4.0 - 25.0</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="3" class="cl-d1a8869f"><p class="cl-d1a8686d"><span class="cl-d187e18c">dist</span></p></td><td class="cl-d1a886a0"><p class="cl-d1a8686d"><span class="cl-d187e18d">Mean (SD)</span></p></td><td class="cl-d1a886a8"><p class="cl-d1a86876"><span class="cl-d187e178">43.0 (25.8)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d1a886b2"><p class="cl-d1a8686d"><span class="cl-d187e18d">Median (IQR)</span></p></td><td class="cl-d1a886b3"><p class="cl-d1a86876"><span class="cl-d187e178">36.0 (30.0)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d1a886bd"><p class="cl-d1a8686d"><span class="cl-d187e1a0">Range</span></p></td><td class="cl-d1a886be"><p class="cl-d1a86876"><span class="cl-d187e1a1">2.0 - 120.0</span></p></td></tr></tbody></table></div>
</div>
</div>
</div>
</div>
</section>
<section id="features-quick-overview" class="slide level2">
<h2>features: quick overview</h2>
<div class="columns">
<div class="column" style="width:40%;">
<div class="callout callout-tip callout-titled callout-style-default">
<div class="callout-body">
<div class="callout-title">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<p><strong>with <code>flextable()</code></strong></p>
</div>
<div class="callout-content">
<p>‘flextable’ can easily create reporting table from data.frame. You can merge cells, add header rows or specify how data should be displayed in cells.</p>
<div class="quarto-figure quarto-figure-center">
<figure>
<p><a href="examples/tennis-player/script.R"><img data-src="assets/img/tennis-players.png"></a></p>
<figcaption>tennis-players as png</figcaption>
</figure>
</div>
</div>
</div>
</div>
</div><div class="column" style="width:60%;">
<div class="callout callout-tip callout-titled callout-style-default">
<div class="callout-body">
<div class="callout-title">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<p><strong>with <code>as_flextable()</code></strong></p>
</div>
<div class="callout-content">
<p>The <code>as_flextable()</code> function is used to transform specific objects into flextable objects.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1"></a><span class="fu">with</span>(palmerpenguins<span class="sc">::</span>penguins, <span class="fu">table</span>(species, island)) <span class="sc">|></span></span>
<span id="cb2-2"><a href="#cb2-2"></a> <span class="fu">as_flextable</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d237cb1a{}.cl-d22d417c{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d22d4190{font-family:'Open Sans';font-size:6pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3pt;}.cl-d2319088{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d231909c{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d23190a6{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d23190a7{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d23190a8{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d231adca{width:0.839in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231add4{width:0.842in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231add5{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231adde{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231addf{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ade0{width:1.036in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ade8{width:0.839in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ade9{width:0.842in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231adf2{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0.75pt solid rgba(170, 170, 170, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231adf3{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0.75pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231adfc{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0.75pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231adfd{width:1.036in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0.75pt solid rgba(170, 170, 170, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae06{width:0.839in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae07{width:0.842in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae08{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae10{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae11{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae1a{width:1.036in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae1b{width:0.839in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae1c{width:0.842in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae24{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae25{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae2e{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae2f{width:1.036in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae38{width:0.839in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae39{width:0.842in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae3a{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae42{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae43{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae4c{width:1.036in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae4d{width:0.839in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae56{width:0.842in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae57{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae58{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae60{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae61{width:1.036in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae6a{width:0.839in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae6b{width:0.842in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae74{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae75{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae7e{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae7f{width:1.036in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae80{width:0.839in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae88{width:0.842in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae89{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1pt solid rgba(170, 170, 170, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae8a{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae92{width:1.178in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae93{width:1.036in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1pt solid rgba(170, 170, 170, 1.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae9c{width:0.839in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae9d{width:0.842in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231ae9e{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231aea6{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231aea7{width:1.178in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 1pt solid rgba(170, 170, 170, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d231aeb0{width:1.036in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 1pt solid rgba(170, 170, 170, 1.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d237cb1a"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-d231adca"><p class="cl-d2319088"><span class="cl-d22d417c">species</span></p></th><th rowspan="2" class="cl-d231add4"><p class="cl-d2319088"><span class="cl-d22d417c"></span></p></th><th colspan="4" class="cl-d231add5"><p class="cl-d231909c"><span class="cl-d22d417c">island</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-d231adf2"><p class="cl-d231909c"><span class="cl-d22d417c">Biscoe</span></p></th><th class="cl-d231adf3"><p class="cl-d231909c"><span class="cl-d22d417c">Dream</span></p></th><th class="cl-d231adfc"><p class="cl-d231909c"><span class="cl-d22d417c">Torgersen</span></p></th><th class="cl-d231adfd"><p class="cl-d231909c"><span class="cl-d22d417c">Total</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td rowspan="2" class="cl-d231ae06"><p class="cl-d23190a6"><span class="cl-d22d417c">Adelie</span></p></td><td class="cl-d231ae07"><p class="cl-d23190a6"><span class="cl-d22d417c">Count</span></p></td><td class="cl-d231ae08"><p class="cl-d23190a7"><span class="cl-d22d417c">44 (12.8%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae10"><p class="cl-d23190a7"><span class="cl-d22d417c">56 (16.3%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae11"><p class="cl-d23190a7"><span class="cl-d22d417c">52 (15.1%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae1a"><p class="cl-d23190a7"><span class="cl-d22d417c">152 (44.2%)</span><span class="cl-d22d417c"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d231ae1c"><p class="cl-d23190a6"><span class="cl-d22d417c">Mar. pct</span><span class="cl-d22d4190"> (1)</span></p></td><td class="cl-d231ae24"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">26.2% ; 28.9%</span></p></td><td class="cl-d231ae25"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">45.2% ; 36.8%</span></p></td><td class="cl-d231ae2e"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">100.0% ; 34.2%</span></p></td><td class="cl-d231ae2f"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2" class="cl-d231ae38"><p class="cl-d23190a6"><span class="cl-d22d417c">Chinstrap</span></p></td><td class="cl-d231ae39"><p class="cl-d23190a6"><span class="cl-d22d417c">Count</span></p></td><td class="cl-d231ae3a"><p class="cl-d23190a7"><span class="cl-d22d417c">0 (0.0%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae42"><p class="cl-d23190a7"><span class="cl-d22d417c">68 (19.8%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae43"><p class="cl-d23190a7"><span class="cl-d22d417c">0 (0.0%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae4c"><p class="cl-d23190a7"><span class="cl-d22d417c">68 (19.8%)</span><span class="cl-d22d417c"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d231ae39"><p class="cl-d23190a6"><span class="cl-d22d417c">Mar. pct</span></p></td><td class="cl-d231ae3a"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">0.0% ; 0.0%</span></p></td><td class="cl-d231ae42"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">54.8% ; 100.0%</span></p></td><td class="cl-d231ae43"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">0.0% ; 0.0%</span></p></td><td class="cl-d231ae4c"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2" class="cl-d231ae4d"><p class="cl-d23190a6"><span class="cl-d22d417c">Gentoo</span></p></td><td class="cl-d231ae56"><p class="cl-d23190a6"><span class="cl-d22d417c">Count</span></p></td><td class="cl-d231ae57"><p class="cl-d23190a7"><span class="cl-d22d417c">124 (36.0%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae58"><p class="cl-d23190a7"><span class="cl-d22d417c">0 (0.0%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae60"><p class="cl-d23190a7"><span class="cl-d22d417c">0 (0.0%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae61"><p class="cl-d23190a7"><span class="cl-d22d417c">124 (36.0%)</span><span class="cl-d22d417c"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d231ae6b"><p class="cl-d23190a6"><span class="cl-d22d417c">Mar. pct</span></p></td><td class="cl-d231ae74"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">73.8% ; 100.0%</span></p></td><td class="cl-d231ae75"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">0.0% ; 0.0%</span></p></td><td class="cl-d231ae7e"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c">0.0% ; 0.0%</span></p></td><td class="cl-d231ae7f"><p class="cl-d23190a7"><span class="cl-d22d417c"></span><span class="cl-d22d417c"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d231ae80"><p class="cl-d23190a6"><span class="cl-d22d417c">Total</span></p></td><td class="cl-d231ae88"><p class="cl-d23190a6"><span class="cl-d22d417c">Count</span></p></td><td class="cl-d231ae89"><p class="cl-d23190a7"><span class="cl-d22d417c">168 (48.8%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae8a"><p class="cl-d23190a7"><span class="cl-d22d417c">124 (36.0%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae92"><p class="cl-d23190a7"><span class="cl-d22d417c">52 (15.1%)</span><span class="cl-d22d417c"></span></p></td><td class="cl-d231ae93"><p class="cl-d23190a7"><span class="cl-d22d417c">344 (100.0%)</span><span class="cl-d22d417c"></span></p></td></tr></tbody><tfoot><tr style="overflow-wrap:break-word;"><td colspan="6" class="cl-d231ae9c"><p class="cl-d23190a8"><span class="cl-d22d4190"> (1)</span><span class="cl-d22d417c"> Columns and rows percentages</span></p></td></tr></tfoot></table></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="supported-outputs" class="slide level2">
<h2>Supported outputs</h2>
<p>It supports various output formats to meet different needs :</p>
<ul>
<li>HTML</li>
<li>Microsoft Word and RTF</li>
<li>Microsoft PowerPoint</li>
<li>PDF</li>
<li>‘grid graphics’</li>
<li>Excel (<a href="https://github.com/pteridin/flexlsx" class="uri">https://github.com/pteridin/flexlsx</a>)</li>
</ul>
</section>
<section id="demographic-table-example" class="slide level2">
<h2>Demographic table example</h2>
<div class="columns">
<div class="column" style="width:50%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb3" data-code-line-numbers="3"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1"></a>adsl <span class="ot"><-</span> <span class="fu">select</span>(formatters<span class="sc">::</span>ex_adsl, AGE, SEX, ARM)</span>
<span id="cb3-2"><a href="#cb3-2"></a>col_labels <span class="ot"><-</span> <span class="fu">map_chr</span>(adsl, <span class="cf">function</span>(x) <span class="fu">attr</span>(x, <span class="st">"label"</span>))</span>
<span id="cb3-3"><a href="#cb3-3"></a><span class="fu">summarizor</span>(adsl, <span class="at">by =</span> <span class="st">"ARM"</span>) <span class="sc">|></span> </span>
<span id="cb3-4"><a href="#cb3-4"></a> <span class="fu">as_flextable</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d2827b24{}.cl-d2787a98{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d2787aa2{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d27c9330{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d27c933a{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:0;padding-top:0;padding-left:0;padding-right:0;line-height: 1.3;background-color:transparent;}.cl-d27c9344{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d27c9345{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d27c934e{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:0;padding-top:0;padding-left:0;padding-right:0;line-height: 1.3;background-color:transparent;}.cl-d27c934f{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d27cb162{width:0.456in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb16c{width:1.481in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb16d{width:0.079in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb176{width:0.936in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb177{width:1.185in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb178{width:0.456in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb180{width:1.481in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb181{width:0.079in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb18a{width:0.936in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb18b{width:1.185in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb194{width:0.456in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb19e{width:1.481in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb19f{width:0.079in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1a0{width:0.936in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1a8{width:1.185in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1a9{width:0.456in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1b2{width:1.481in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1b3{width:0.079in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1bc{width:0.936in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1bd{width:1.185in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1be{width:0.456in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1c6{width:1.481in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1c7{width:0.079in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1d0{width:0.936in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1d1{width:1.185in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1d2{width:0.456in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1da{width:1.481in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1db{width:0.936in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d27cb1e4{width:1.185in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d2827b24"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d27cb162"><p class="cl-d27c9330"><span class="cl-d2787a98"></span></p></th><th class="cl-d27cb16c"><p class="cl-d27c9330"><span class="cl-d2787a98"></span></p></th><th class="cl-d27cb16d"><p class="cl-d27c933a"><span class="cl-d2787aa2"></span></p></th><th class="cl-d27cb176"><p class="cl-d27c9344"><span class="cl-d2787a98">A: Drug X</span><br><span class="cl-d2787a98">(N=134)</span></p></th><th class="cl-d27cb16d"><p class="cl-d27c933a"><span class="cl-d2787aa2"></span></p></th><th class="cl-d27cb176"><p class="cl-d27c9344"><span class="cl-d2787a98">B: Placebo</span><br><span class="cl-d2787a98">(N=134)</span></p></th><th class="cl-d27cb16d"><p class="cl-d27c933a"><span class="cl-d2787aa2"></span></p></th><th class="cl-d27cb177"><p class="cl-d27c9344"><span class="cl-d2787a98">C: Combination</span><br><span class="cl-d2787a98">(N=132)</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td rowspan="3" class="cl-d27cb178"><p class="cl-d27c9345"><span class="cl-d2787a98">AGE</span></p></td><td class="cl-d27cb180"><p class="cl-d27c9345"><span class="cl-d2787a98">Mean (SD)</span></p></td><td class="cl-d27cb181"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb18a"><p class="cl-d27c934f"><span class="cl-d2787a98">33.8 (6.6)</span></p></td><td class="cl-d27cb181"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb18a"><p class="cl-d27c934f"><span class="cl-d2787a98">35.4 (7.9)</span></p></td><td class="cl-d27cb181"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb18b"><p class="cl-d27c934f"><span class="cl-d2787a98">35.4 (7.7)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d27cb19e"><p class="cl-d27c9345"><span class="cl-d2787a98">Median (IQR)</span></p></td><td class="cl-d27cb19f"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1a0"><p class="cl-d27c934f"><span class="cl-d2787a98">33.0 (11.0)</span></p></td><td class="cl-d27cb19f"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1a0"><p class="cl-d27c934f"><span class="cl-d2787a98">35.0 (10.0)</span></p></td><td class="cl-d27cb19f"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1a8"><p class="cl-d27c934f"><span class="cl-d2787a98">35.0 (10.0)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d27cb1b2"><p class="cl-d27c9345"><span class="cl-d2787a98">Range</span></p></td><td class="cl-d27cb1b3"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1bc"><p class="cl-d27c934f"><span class="cl-d2787a98">21.0 - 50.0</span></p></td><td class="cl-d27cb1b3"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1bc"><p class="cl-d27c934f"><span class="cl-d2787a98">21.0 - 62.0</span></p></td><td class="cl-d27cb1b3"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1bd"><p class="cl-d27c934f"><span class="cl-d2787a98">20.0 - 69.0</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="4" class="cl-d27cb1be"><p class="cl-d27c9345"><span class="cl-d2787a98">SEX</span></p></td><td class="cl-d27cb1c6"><p class="cl-d27c9345"><span class="cl-d2787a98">F</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d0"><p class="cl-d27c934f"><span class="cl-d2787a98">79 (58.96%)</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d0"><p class="cl-d27c934f"><span class="cl-d2787a98">77 (57.46%)</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d1"><p class="cl-d27c934f"><span class="cl-d2787a98">66 (50.00%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d27cb1c6"><p class="cl-d27c9345"><span class="cl-d2787a98">M</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d0"><p class="cl-d27c934f"><span class="cl-d2787a98">51 (38.06%)</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d0"><p class="cl-d27c934f"><span class="cl-d2787a98">55 (41.04%)</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d1"><p class="cl-d27c934f"><span class="cl-d2787a98">60 (45.45%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d27cb1c6"><p class="cl-d27c9345"><span class="cl-d2787a98">U</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d0"><p class="cl-d27c934f"><span class="cl-d2787a98">3 (2.24%)</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d0"><p class="cl-d27c934f"><span class="cl-d2787a98">2 (1.49%)</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1d1"><p class="cl-d27c934f"><span class="cl-d2787a98">4 (3.03%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d27cb1da"><p class="cl-d27c9345"><span class="cl-d2787a98">UNDIFFERENTIATED</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1db"><p class="cl-d27c934f"><span class="cl-d2787a98">1 (0.75%)</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1db"><p class="cl-d27c934f"><span class="cl-d2787a98">0 (0.00%)</span></p></td><td class="cl-d27cb1c7"><p class="cl-d27c934e"><span class="cl-d2787aa2"></span></p></td><td class="cl-d27cb1e4"><p class="cl-d27c934f"><span class="cl-d2787a98">2 (1.52%)</span></p></td></tr></tbody></table></div>
</div>
</div>
<div style="font-size:medium;">
<p>Visual aspect can be improved:</p>
<ul>
<li>by using options of <code>as_flextable()</code>,</li>
<li>by adding tabulations with <code>prepend_chunks()</code>,</li>
<li>by using proper labels with <code>labelizor()</code>.</li>
</ul>
</div>
</div><div class="column" style="width:50%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb4" data-code-line-numbers="1-3"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1"></a>ft <span class="ot"><-</span> <span class="fu">summarizor</span>(adsl, <span class="at">by =</span> <span class="st">"ARM"</span>) <span class="sc">|></span></span>
<span id="cb4-2"><a href="#cb4-2"></a> <span class="fu">as_flextable</span>(<span class="at">sep_w =</span> <span class="dv">0</span>, <span class="at">separate_with =</span> <span class="st">"variable"</span>, </span>
<span id="cb4-3"><a href="#cb4-3"></a> <span class="at">spread_first_col =</span> <span class="cn">TRUE</span>) <span class="sc">|></span></span>
<span id="cb4-4"><a href="#cb4-4"></a> <span class="fu">align</span>(<span class="at">i =</span> <span class="sc">~</span> <span class="sc">!</span><span class="fu">is.na</span>(variable), <span class="at">align =</span> <span class="st">"left"</span>) <span class="sc">|></span> </span>
<span id="cb4-5"><a href="#cb4-5"></a> <span class="fu">prepend_chunks</span>(<span class="at">i =</span> <span class="sc">~</span> <span class="fu">is.na</span>(variable), <span class="at">j =</span><span class="st">"stat"</span>, </span>
<span id="cb4-6"><a href="#cb4-6"></a> <span class="fu">as_chunk</span>(<span class="st">"</span><span class="sc">\t</span><span class="st">"</span>)) <span class="sc">|></span> </span>
<span id="cb4-7"><a href="#cb4-7"></a> <span class="fu">labelizor</span>(<span class="at">j =</span> <span class="fu">c</span>(<span class="st">"stat"</span>), <span class="at">labels =</span> col_labels, </span>
<span id="cb4-8"><a href="#cb4-8"></a> <span class="at">part =</span> <span class="st">"all"</span>) <span class="sc">|></span> </span>
<span id="cb4-9"><a href="#cb4-9"></a> <span class="fu">autofit</span>()</span>
<span id="cb4-10"><a href="#cb4-10"></a>ft</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d2c8fedc{}.cl-d2bf83b6{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d2c360bc{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d2c360d0{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d2c360da{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d2c360db{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d2c37b7e{width:2.016in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37b88{width:0.957in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37b89{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37b92{width:2.016in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37b9c{width:0.957in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37b9d{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37b9e{width:2.016in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37ba6{width:0.957in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37ba7{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bb0{width:2.016in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bb1{width:0.957in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bb2{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bba{width:2.016in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bbb{width:0.957in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bc4{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bc5{width:2.016in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0.75pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bce{width:0.957in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0.75pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bcf{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0.75pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bd8{width:2.016in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bd9{width:0.957in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37be2{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37be3{width:2.016in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37be4{width:0.957in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d2c37bec{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d2c8fedc"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d2c37b7e"><p class="cl-d2c360bc"><span class="cl-d2bf83b6"></span></p></th><th class="cl-d2c37b88"><p class="cl-d2c360d0"><span class="cl-d2bf83b6">A: Drug X</span><br><span class="cl-d2bf83b6">(N=134)</span></p></th><th class="cl-d2c37b88"><p class="cl-d2c360d0"><span class="cl-d2bf83b6">B: Placebo</span><br><span class="cl-d2bf83b6">(N=134)</span></p></th><th class="cl-d2c37b89"><p class="cl-d2c360d0"><span class="cl-d2bf83b6">C: Combination</span><br><span class="cl-d2bf83b6">(N=132)</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d2c37b92"><p class="cl-d2c360da"><span class="cl-d2bf83b6">Age</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d2c37b9e"><p class="cl-d2c360da"> <span class="cl-d2bf83b6">Mean (SD)</span></p></td><td class="cl-d2c37ba6"><p class="cl-d2c360db"><span class="cl-d2bf83b6">33.8 (6.6)</span></p></td><td class="cl-d2c37ba6"><p class="cl-d2c360db"><span class="cl-d2bf83b6">35.4 (7.9)</span></p></td><td class="cl-d2c37ba7"><p class="cl-d2c360db"><span class="cl-d2bf83b6">35.4 (7.7)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d2c37bb0"><p class="cl-d2c360da"> <span class="cl-d2bf83b6">Median (IQR)</span></p></td><td class="cl-d2c37bb1"><p class="cl-d2c360db"><span class="cl-d2bf83b6">33.0 (11.0)</span></p></td><td class="cl-d2c37bb1"><p class="cl-d2c360db"><span class="cl-d2bf83b6">35.0 (10.0)</span></p></td><td class="cl-d2c37bb2"><p class="cl-d2c360db"><span class="cl-d2bf83b6">35.0 (10.0)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d2c37bba"><p class="cl-d2c360da"> <span class="cl-d2bf83b6">Range</span></p></td><td class="cl-d2c37bbb"><p class="cl-d2c360db"><span class="cl-d2bf83b6">21.0 - 50.0</span></p></td><td class="cl-d2c37bbb"><p class="cl-d2c360db"><span class="cl-d2bf83b6">21.0 - 62.0</span></p></td><td class="cl-d2c37bc4"><p class="cl-d2c360db"><span class="cl-d2bf83b6">20.0 - 69.0</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d2c37bc5"><p class="cl-d2c360da"><span class="cl-d2bf83b6">Sex</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d2c37bd8"><p class="cl-d2c360da"> <span class="cl-d2bf83b6">F</span></p></td><td class="cl-d2c37bd9"><p class="cl-d2c360db"><span class="cl-d2bf83b6">79 (58.96%)</span></p></td><td class="cl-d2c37bd9"><p class="cl-d2c360db"><span class="cl-d2bf83b6">77 (57.46%)</span></p></td><td class="cl-d2c37be2"><p class="cl-d2c360db"><span class="cl-d2bf83b6">66 (50.00%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d2c37bd8"><p class="cl-d2c360da"> <span class="cl-d2bf83b6">M</span></p></td><td class="cl-d2c37bd9"><p class="cl-d2c360db"><span class="cl-d2bf83b6">51 (38.06%)</span></p></td><td class="cl-d2c37bd9"><p class="cl-d2c360db"><span class="cl-d2bf83b6">55 (41.04%)</span></p></td><td class="cl-d2c37be2"><p class="cl-d2c360db"><span class="cl-d2bf83b6">60 (45.45%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d2c37bd8"><p class="cl-d2c360da"> <span class="cl-d2bf83b6">U</span></p></td><td class="cl-d2c37bd9"><p class="cl-d2c360db"><span class="cl-d2bf83b6">3 (2.24%)</span></p></td><td class="cl-d2c37bd9"><p class="cl-d2c360db"><span class="cl-d2bf83b6">2 (1.49%)</span></p></td><td class="cl-d2c37be2"><p class="cl-d2c360db"><span class="cl-d2bf83b6">4 (3.03%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d2c37be3"><p class="cl-d2c360da"> <span class="cl-d2bf83b6">UNDIFFERENTIATED</span></p></td><td class="cl-d2c37be4"><p class="cl-d2c360db"><span class="cl-d2bf83b6">1 (0.75%)</span></p></td><td class="cl-d2c37be4"><p class="cl-d2c360db"><span class="cl-d2bf83b6">0 (0.00%)</span></p></td><td class="cl-d2c37bec"><p class="cl-d2c360db"><span class="cl-d2bf83b6">2 (1.52%)</span></p></td></tr></tbody></table></div>
</div>
</div>
</div>
</div>
</section>
<section id="save-result-in-a-file" class="slide level2">
<h2>Save result in a file</h2>
<p>You can quickly save the result:</p>
<ul>
<li>in a Microsoft Word with <code>save_as_docx()</code>,</li>
<li>in a Microsoft PowerPoint with <code>save_as_pptx()</code>,</li>
<li>in a PNG with <code>save_as_image()</code> with full support for fonts.</li>
</ul>
<div class="cell">
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1"></a><span class="fu">save_as_docx</span>(ft, </span>
<span id="cb5-2"><a href="#cb5-2"></a> <span class="at">path =</span> <span class="st">"assets/files/ft.docx"</span>)</span>
<span id="cb5-3"><a href="#cb5-3"></a><span class="fu">save_as_pptx</span>(ft,</span>
<span id="cb5-4"><a href="#cb5-4"></a> <span class="at">path =</span> <span class="st">"assets/files/ft.pptx"</span>)</span>
<span id="cb5-5"><a href="#cb5-5"></a><span class="fu">save_as_image</span>(ft,</span>
<span id="cb5-6"><a href="#cb5-6"></a> <span class="at">path =</span> <span class="st">"assets/files/ft.png"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</section>
<section id="section" class="slide level2">
<h2></h2>
<div class="callout callout-tip callout-titled callout-style-default">
<div class="callout-body">
<div class="callout-title">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<p><strong>package ‘doconv’ <a href="https://cran.r-project.org/package=doconv" class="uri">https://cran.r-project.org/package=doconv</a></strong></p>
</div>
<div class="callout-content">
<p>You can use package ‘doconv’ to produce miniatures from ‘Word’, ‘PowerPoint’ or ‘PDF’ files.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb6"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb6-1"><a href="#cb6-1"></a>doconv<span class="sc">::</span><span class="fu">to_miniature</span>(<span class="st">"assets/files/ft.docx"</span>, <span class="at">fileout =</span> <span class="st">"assets/files/ft-docx.png"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
</div>
<div class="panel-tabset">
<ul id="tabset-1" class="panel-tabset-tabby"><li><a data-tabby-default="" href="#tabset-1-1">Word</a></li><li><a href="#tabset-1-2">PowerPoint</a></li><li><a href="#tabset-1-3">PNG</a></li></ul>
<div class="tab-content">
<div id="tabset-1-1">
<div class="quarto-figure quarto-figure-center">
<figure>
<p><img data-src="assets/files/ft-docx.png" width="400"></p>
<figcaption><a href="assets/files/ft.docx">ft.docx</a></figcaption>
</figure>
</div>
</div>
<div id="tabset-1-2">
<div class="quarto-figure quarto-figure-center">
<figure>
<p><img data-src="assets/files/ft-pptx.png" width="450"></p>
</figure>
</div>
</div>
<div id="tabset-1-3">
<div class="quarto-figure quarto-figure-center">
<figure>
<p><img data-src="assets/files/ft.png" width="500"></p>
</figure>
</div>
</div>
</div>
</div>
</section></section>
<section>
<section id="r-tables-for-regulatory-submissions-working-group" class="title-slide slide level1 smaller center">
<h1>R Tables for Regulatory Submissions Working Group</h1>
<p><a href="https://rconsortium.github.io/rtrs-wg/" class="uri">https://rconsortium.github.io/rtrs-wg/</a></p>
<blockquote>
<p>The goal of the working group is to create standards for creating tables that meet the requirements of FDA submission documents, and hence enhance the suitability of R for FDA submissions. […]</p>
</blockquote>
<p>Participation in the working group led to several advances in clinical reporting with ‘flextable’.</p>
</section>
<section id="two-types-of-table-packages" class="slide level2 smaller">
<h2>Two types of table packages</h2>
<div class="columns">
<div class="column" style="width:40%;">
<p>Focused on formatting, with content definition populated from a data.frame (‘flextable’, ‘gt’). The data.frame based approach of ‘flextable’ requires to first build a data.frame that contains all data and then to format it.</p>
</div><div class="column" style="width:60%;">
<div class="callout callout-warning callout-titled callout-style-default">
<div class="callout-body">
<div class="callout-title">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<p><strong>data.frame based approach</strong></p>
</div>
<div class="callout-content">
<p>It sometimes results in code that is too long and painful to write in order to produce the tables in the book.</p>
<div class="cell">
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d3d998d6{}.cl-d3cf579a{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d3d429b4{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d3d445c0{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d3d445ca{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d3d998d6"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d3d445c0"><p class="cl-d3d429b4"><span class="cl-d3cf579a">package</span></p></th><th class="cl-d3d445c0"><p class="cl-d3d429b4"><span class="cl-d3cf579a">ASCII</span></p></th><th class="cl-d3d445c0"><p class="cl-d3d429b4"><span class="cl-d3cf579a">PDF</span></p></th><th class="cl-d3d445c0"><p class="cl-d3d429b4"><span class="cl-d3cf579a">HTML</span></p></th><th class="cl-d3d445c0"><p class="cl-d3d429b4"><span class="cl-d3cf579a">DOCX</span></p></th><th class="cl-d3d445c0"><p class="cl-d3d429b4"><span class="cl-d3cf579a">RTF</span></p></th><th class="cl-d3d445c0"><p class="cl-d3d429b4"><span class="cl-d3cf579a">PPTX</span></p></th><th class="cl-d3d445c0"><p class="cl-d3d429b4"><span class="cl-d3cf579a">GRID</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d3d445ca"><p class="cl-d3d429b4"><span class="cl-d3cf579a">flextable</span></p></td><td class="cl-d3d445ca"><p class="cl-d3d429b4"><span class="cl-d3cf579a"></span></p></td><td class="cl-d3d445ca"><p class="cl-d3d429b4"><span class="cl-d3cf579a">✓</span></p></td><td class="cl-d3d445ca"><p class="cl-d3d429b4"><span class="cl-d3cf579a">✓</span></p></td><td class="cl-d3d445ca"><p class="cl-d3d429b4"><span class="cl-d3cf579a">✓</span></p></td><td class="cl-d3d445ca"><p class="cl-d3d429b4"><span class="cl-d3cf579a">✓</span></p></td><td class="cl-d3d445ca"><p class="cl-d3d429b4"><span class="cl-d3cf579a">✓</span></p></td><td class="cl-d3d445ca"><p class="cl-d3d429b4"><span class="cl-d3cf579a">✓</span></p></td></tr></tbody></table></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="columns">
<div class="column" style="width:40%;">
<p>Focused on functional expression and content definition, with little <em>visual</em> formatting capability (‘tables’, ‘rtables’, ‘tfrmt’, ‘tidytlg’). Packages ‘tables’ and ‘rtables’ are expressive enough to allow these tables to be formulated and can be converted to flextable.</p>
</div><div class="column" style="width:60%;">
<div class="callout callout-tip callout-titled callout-style-default">
<div class="callout-body">
<div class="callout-title">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<p><strong>as_flextable approach</strong></p>
</div>
<div class="callout-content">
<p>Use ‘tables’<span class="citation" data-cites="R-tables">(<a href="#/thank-you" role="doc-biblioref" onclick="">Murdoch 2023</a>, <a href="#/thank-you" role="doc-biblioref" onclick="">website</a>)</span> and get a flextable with <code>as_flextable()</code> function.</p>
<p>Use ‘rtables’<span class="citation" data-cites="R-rtables">(<a href="#/thank-you" role="doc-biblioref" onclick="">Becker and Waddell 2023</a>, <a href="#/thank-you" role="doc-biblioref" onclick="">website</a>)</span> and get a flextable with <code>tt_to_flextable()</code> function.</p>
<div class="cell">
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d3fc6870{}.cl-d3f1fed0{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d3f5f0a8{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d3f60c0a{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d3f60c14{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d3fc6870"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d3f60c0a"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">package</span></p></th><th class="cl-d3f60c0a"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">ASCII</span></p></th><th class="cl-d3f60c0a"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">PDF</span></p></th><th class="cl-d3f60c0a"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">HTML</span></p></th><th class="cl-d3f60c0a"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">DOCX</span></p></th><th class="cl-d3f60c0a"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">RTF</span></p></th><th class="cl-d3f60c0a"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">PPTX</span></p></th><th class="cl-d3f60c0a"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">GRID</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">rtables</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">tables</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td><td class="cl-d3f60c14"><p class="cl-d3f5f0a8"><span class="cl-d3f1fed0">✓</span></p></td></tr></tbody></table></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section></section>
<section>
<section id="disposition-table" class="title-slide slide level1 center" data-background="#0097c3">
<h1>Disposition table</h1>
<p>This table taken from the book shows the <strong>data.frame approach</strong> with flextable.</p>
</section>
<section id="disposition-table-preparation" class="slide level2">
<h2>Disposition table preparation</h2>
<p>Function <code>tabulator()</code> is used to prepare/structure the table.</p>
<p>The very first step is to create the data.frame that will be used by function <code>tabulator()</code> (40 lines of code with tidyverse).</p>
<div class="columns">
<div class="column" style="width:52%;">
<div class="cell">
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d4efbdb8{}.cl-d4e58064{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d4e58078{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(153, 153, 153, 1.00);background-color:transparent;}.cl-d4e9dc0e{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d4e9dc18{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d4e9f61c{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f626{width:1.226in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f630{width:1.576in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f631{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f632{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f63a{width:1.226in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f63b{width:1.576in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f644{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f645{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f64e{width:1.226in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f64f{width:1.576in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f650{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f658{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f659{width:1.226in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f662{width:1.576in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f663{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f66c{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f676{width:1.226in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f677{width:1.576in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f680{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f681{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f68a{width:1.226in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f68b{width:1.576in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d4e9f68c{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d4efbdb8"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d4e9f61c"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">TRT01A</span></p></th><th class="cl-d4e9f626"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">EOSSTT</span></p></th><th class="cl-d4e9f630"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">DCSREAS</span></p></th><th class="cl-d4e9f631"><p class="cl-d4e9dc18"><span class="cl-d4e58064">n</span></p></th><th class="cl-d4e9f631"><p class="cl-d4e9dc18"><span class="cl-d4e58064">percent</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-d4e9f632"><p class="cl-d4e9dc0e"><span class="cl-d4e58078">factor</span></p></th><th class="cl-d4e9f63a"><p class="cl-d4e9dc0e"><span class="cl-d4e58078">factor</span></p></th><th class="cl-d4e9f63b"><p class="cl-d4e9dc0e"><span class="cl-d4e58078">factor</span></p></th><th class="cl-d4e9f644"><p class="cl-d4e9dc18"><span class="cl-d4e58078">integer</span></p></th><th class="cl-d4e9f644"><p class="cl-d4e9dc18"><span class="cl-d4e58078">numeric</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f645"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">A: Drug X</span></p></td><td class="cl-d4e9f64e"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">COMPLETED</span></p></td><td class="cl-d4e9f64f"><p class="cl-d4e9dc0e"><span class="cl-d4e58064"></span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">68</span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.5</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f658"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">B: Placebo</span></p></td><td class="cl-d4e9f659"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">COMPLETED</span></p></td><td class="cl-d4e9f662"><p class="cl-d4e9dc0e"><span class="cl-d4e58064"></span></p></td><td class="cl-d4e9f663"><p class="cl-d4e9dc18"><span class="cl-d4e58064">66</span></p></td><td class="cl-d4e9f663"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.5</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f658"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">C: Combination</span></p></td><td class="cl-d4e9f659"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">COMPLETED</span></p></td><td class="cl-d4e9f662"><p class="cl-d4e9dc0e"><span class="cl-d4e58064"></span></p></td><td class="cl-d4e9f663"><p class="cl-d4e9dc18"><span class="cl-d4e58064">73</span></p></td><td class="cl-d4e9f663"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f645"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">A: Drug X</span></p></td><td class="cl-d4e9f64e"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">ONGOING</span></p></td><td class="cl-d4e9f64f"><p class="cl-d4e9dc0e"><span class="cl-d4e58064"></span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">24</span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.2</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f658"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">B: Placebo</span></p></td><td class="cl-d4e9f659"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">ONGOING</span></p></td><td class="cl-d4e9f662"><p class="cl-d4e9dc0e"><span class="cl-d4e58064"></span></p></td><td class="cl-d4e9f663"><p class="cl-d4e9dc18"><span class="cl-d4e58064">28</span></p></td><td class="cl-d4e9f663"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.2</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f658"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">C: Combination</span></p></td><td class="cl-d4e9f659"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">ONGOING</span></p></td><td class="cl-d4e9f662"><p class="cl-d4e9dc0e"><span class="cl-d4e58064"></span></p></td><td class="cl-d4e9f663"><p class="cl-d4e9dc18"><span class="cl-d4e58064">21</span></p></td><td class="cl-d4e9f663"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.2</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f645"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">A: Drug X</span></p></td><td class="cl-d4e9f64e"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">DISCONTINUED</span></p></td><td class="cl-d4e9f64f"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">ADVERSE EVENT</span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">3</span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.0</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f645"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">A: Drug X</span></p></td><td class="cl-d4e9f64e"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">DISCONTINUED</span></p></td><td class="cl-d4e9f64f"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">DEATH</span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">25</span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.2</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f645"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">A: Drug X</span></p></td><td class="cl-d4e9f64e"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">DISCONTINUED</span></p></td><td class="cl-d4e9f64f"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">LACK OF EFFICACY</span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">2</span></p></td><td class="cl-d4e9f650"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.0</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d4e9f66c"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">A: Drug X</span></p></td><td class="cl-d4e9f676"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">DISCONTINUED</span></p></td><td class="cl-d4e9f677"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">PHYSICIAN DECISION</span></p></td><td class="cl-d4e9f680"><p class="cl-d4e9dc18"><span class="cl-d4e58064">2</span></p></td><td class="cl-d4e9f680"><p class="cl-d4e9dc18"><span class="cl-d4e58064">0.0</span></p></td></tr></tbody><tfoot><tr style="overflow-wrap:break-word;"><td colspan="5" class="cl-d4e9f681"><p class="cl-d4e9dc0e"><span class="cl-d4e58064">n: 47</span></p></td></tr></tfoot></table></div>
</div>
</div>
</div><div class="column" style="width:48%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb7"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb7-1"><a href="#cb7-1"></a>tab <span class="ot"><-</span> <span class="fu">tabulator</span>(</span>
<span id="cb7-2"><a href="#cb7-2"></a> <span class="at">x =</span> dat,</span>
<span id="cb7-3"><a href="#cb7-3"></a> <span class="at">rows =</span> <span class="fu">c</span>(<span class="st">"EOSSTT"</span>, <span class="st">"DCSREAS"</span>), </span>
<span id="cb7-4"><a href="#cb7-4"></a> <span class="at">columns =</span> <span class="st">"TRT01A"</span>,</span>
<span id="cb7-5"><a href="#cb7-5"></a> <span class="at">content_cell =</span> </span>
<span id="cb7-6"><a href="#cb7-6"></a> <span class="fu">as_paragraph</span>(</span>
<span id="cb7-7"><a href="#cb7-7"></a> <span class="fu">fmt_n_percent</span>(n, percent)</span>
<span id="cb7-8"><a href="#cb7-8"></a> )</span>
<span id="cb7-9"><a href="#cb7-9"></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
</section>
<section id="disposition-table-creation" class="slide level2">
<h2>Disposition table creation</h2>
<div class="columns">
<div class="column" style="width:50%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb8" data-code-line-numbers="1-3"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb8-1"><a href="#cb8-1"></a>ft <span class="ot"><-</span> <span class="fu">as_flextable</span>(tab,</span>
<span id="cb8-2"><a href="#cb8-2"></a> <span class="at">spread_first_col =</span> <span class="cn">TRUE</span>,</span>
<span id="cb8-3"><a href="#cb8-3"></a> <span class="at">columns_alignment =</span> <span class="st">"center"</span></span>
<span id="cb8-4"><a href="#cb8-4"></a>)</span>
<span id="cb8-5"><a href="#cb8-5"></a></span>
<span id="cb8-6"><a href="#cb8-6"></a><span class="co"># add '(N=xx)'</span></span>
<span id="cb8-7"><a href="#cb8-7"></a>TRT_COUNTS <span class="ot"><-</span> <span class="fu">setNames</span>(</span>
<span id="cb8-8"><a href="#cb8-8"></a> part_header<span class="sc">$</span>n_part,</span>
<span id="cb8-9"><a href="#cb8-9"></a> part_header<span class="sc">$</span>TRT01A</span>
<span id="cb8-10"><a href="#cb8-10"></a>)</span>
<span id="cb8-11"><a href="#cb8-11"></a><span class="cf">for</span> (TRT_COD <span class="cf">in</span> <span class="fu">names</span>(TRT_COUNTS)) {</span>
<span id="cb8-12"><a href="#cb8-12"></a> ft <span class="ot"><-</span> <span class="fu">append_chunks</span>(</span>
<span id="cb8-13"><a href="#cb8-13"></a> <span class="at">x =</span> ft, <span class="at">part =</span> <span class="st">"header"</span>, <span class="at">i =</span> <span class="dv">1</span>,</span>
<span id="cb8-14"><a href="#cb8-14"></a> <span class="at">j =</span> <span class="fu">tabulator_colnames</span>(</span>
<span id="cb8-15"><a href="#cb8-15"></a> tab,</span>
<span id="cb8-16"><a href="#cb8-16"></a> <span class="at">columns =</span> <span class="st">"content_cell"</span>,</span>
<span id="cb8-17"><a href="#cb8-17"></a> TRT01A <span class="sc">%in%</span> <span class="sc">!!</span>TRT_COD</span>
<span id="cb8-18"><a href="#cb8-18"></a> ),</span>
<span id="cb8-19"><a href="#cb8-19"></a> <span class="fu">as_chunk</span>(TRT_COUNTS[TRT_COD],</span>
<span id="cb8-20"><a href="#cb8-20"></a> <span class="at">formatter =</span> <span class="cf">function</span>(n) <span class="fu">sprintf</span>(<span class="st">"</span><span class="sc">\n</span><span class="st">(N=%.0f)"</span>, n)</span>
<span id="cb8-21"><a href="#cb8-21"></a> )</span>
<span id="cb8-22"><a href="#cb8-22"></a> )</span>
<span id="cb8-23"><a href="#cb8-23"></a>}</span>
<span id="cb8-24"><a href="#cb8-24"></a></span>
<span id="cb8-25"><a href="#cb8-25"></a>ft <span class="ot"><-</span> <span class="fu">labelizor</span>(ft,</span>
<span id="cb8-26"><a href="#cb8-26"></a> <span class="at">j =</span> <span class="st">"DCSREAS"</span>,</span>
<span id="cb8-27"><a href="#cb8-27"></a> <span class="at">part =</span> <span class="st">"all"</span>, <span class="at">labels =</span> <span class="cf">function</span>(x) tools<span class="sc">::</span><span class="fu">toTitleCase</span>(<span class="fu">tolower</span>(x))</span>
<span id="cb8-28"><a href="#cb8-28"></a>) <span class="sc">|></span></span>
<span id="cb8-29"><a href="#cb8-29"></a> <span class="fu">labelizor</span>(</span>
<span id="cb8-30"><a href="#cb8-30"></a> <span class="at">labels =</span> <span class="fu">c</span>(<span class="at">Dcsreas =</span> <span class="st">""</span>),</span>
<span id="cb8-31"><a href="#cb8-31"></a> <span class="at">j =</span> <span class="st">"DCSREAS"</span>, <span class="at">part =</span> <span class="st">"header"</span></span>
<span id="cb8-32"><a href="#cb8-32"></a> ) <span class="sc">|></span></span>
<span id="cb8-33"><a href="#cb8-33"></a> <span class="fu">align</span>(</span>
<span id="cb8-34"><a href="#cb8-34"></a> <span class="at">i =</span> <span class="sc">~</span> <span class="sc">!</span><span class="fu">is.na</span>(EOSSTT) <span class="sc">|</span> <span class="fu">seq_along</span>(EOSSTT) <span class="sc">==</span> <span class="dv">1</span>,</span>
<span id="cb8-35"><a href="#cb8-35"></a> <span class="at">j =</span> <span class="dv">1</span>, <span class="at">align =</span> <span class="st">"left"</span></span>
<span id="cb8-36"><a href="#cb8-36"></a> ) <span class="sc">|></span></span>
<span id="cb8-37"><a href="#cb8-37"></a> <span class="fu">prepend_chunks</span>(</span>
<span id="cb8-38"><a href="#cb8-38"></a> <span class="at">i =</span> <span class="sc">~</span> <span class="fu">is.na</span>(EOSSTT),</span>
<span id="cb8-39"><a href="#cb8-39"></a> <span class="at">j =</span> <span class="st">"DCSREAS"</span>, <span class="fu">as_chunk</span>(<span class="st">"</span><span class="sc">\t</span><span class="st">"</span>)</span>
<span id="cb8-40"><a href="#cb8-40"></a> ) <span class="sc">|></span></span>
<span id="cb8-41"><a href="#cb8-41"></a> <span class="fu">autofit</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div><div class="column" style="width:50%;">
<div class="cell">
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d5536ebc{}.cl-d548a81a{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d548a824{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d54cee48{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d54cee5c{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:0;padding-top:0;padding-left:0;padding-right:0;line-height: 1.3;background-color:transparent;}.cl-d54cee5d{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d54cee66{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d54cee70{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:0;padding-top:0;padding-left:0;padding-right:0;line-height: 1.3;background-color:transparent;}.cl-d54cee71{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d54cee7a{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:0;padding-top:0;padding-left:0;padding-right:0;line-height: 1.3;background-color:transparent;}.cl-d54d0d9c{width:3.196in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0da6{width:0.1in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0db0{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dba{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dbb{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dc4{width:3.196in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dc5{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dce{width:0.877in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dcf{width:0.882in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dd0{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dd8{width:3.196in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dd9{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dda{width:0.877in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0de2{width:0.882in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0dec{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0ded{width:3.196in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0df6{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0df7{width:0.877in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e00{width:0.882in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e01{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e02{width:3.196in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e0a{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e0b{width:0.877in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e14{width:0.882in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e15{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e16{width:3.196in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e1e{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e1f{width:0.877in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e28{width:0.882in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e29{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e2a{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e32{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e33{width:3.196in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e3c{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e3d{width:0.877in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e3e{width:0.882in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e46{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e50{width:3.196in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e51{width:0.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e5a{width:0.877in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e5b{width:0.882in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e64{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e65{width:3.196in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e6e{width:0.877in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e6f{width:0.882in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d54d0e78{width:1.206in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d5536ebc"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d54d0d9c"><p class="cl-d54cee48"><span class="cl-d548a81a"></span></p></th><th class="cl-d54d0da6"><p class="cl-d54cee5c"><span class="cl-d548a824"></span></p></th><th class="cl-d54d0db0"><p class="cl-d54cee5d"><span class="cl-d548a81a">A: Drug X</span><br><span class="cl-d548a81a">(N=134)</span></p></th><th class="cl-d54d0da6"><p class="cl-d54cee5c"><span class="cl-d548a824"></span></p></th><th class="cl-d54d0dba"><p class="cl-d54cee5d"><span class="cl-d548a81a">B: Placebo</span><br><span class="cl-d548a81a">(N=134)</span></p></th><th class="cl-d54d0da6"><p class="cl-d54cee5c"><span class="cl-d548a824"></span></p></th><th class="cl-d54d0dbb"><p class="cl-d54cee5d"><span class="cl-d548a81a">C: Combination</span><br><span class="cl-d548a81a">(N=132)</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d54d0dc4"><p class="cl-d54cee66"><span class="cl-d548a81a">Completed</span></p></td><td class="cl-d54d0dc5"><p class="cl-d54cee70"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dce"><p class="cl-d54cee71"><span class="cl-d548a81a">68 (50.7%)</span></p></td><td class="cl-d54d0dc5"><p class="cl-d54cee70"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dcf"><p class="cl-d54cee71"><span class="cl-d548a81a">66 (49.3%)</span></p></td><td class="cl-d54d0dc5"><p class="cl-d54cee70"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dd0"><p class="cl-d54cee71"><span class="cl-d548a81a">73 (55.3%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0dd8"><p class="cl-d54cee66"><span class="cl-d548a81a">Ongoing</span></p></td><td class="cl-d54d0dd9"><p class="cl-d54cee70"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dda"><p class="cl-d54cee71"><span class="cl-d548a81a">24 (17.9%)</span></p></td><td class="cl-d54d0dd9"><p class="cl-d54cee70"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0de2"><p class="cl-d54cee71"><span class="cl-d548a81a">28 (20.9%)</span></p></td><td class="cl-d54d0dd9"><p class="cl-d54cee70"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dec"><p class="cl-d54cee71"><span class="cl-d548a81a">21 (15.9%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="7" class="cl-d54d0ded"><p class="cl-d54cee66"><span class="cl-d548a81a">Discontinued</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e02"><p class="cl-d54cee66"> <span class="cl-d548a81a">Adverse Event</span></p></td><td class="cl-d54d0e0a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e0b"><p class="cl-d54cee71"><span class="cl-d548a81a">3 (2.2%)</span></p></td><td class="cl-d54d0e0a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e14"><p class="cl-d54cee71"><span class="cl-d548a81a">6 (4.5%)</span></p></td><td class="cl-d54d0e0a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e15"><p class="cl-d54cee71"><span class="cl-d548a81a">5 (3.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e02"><p class="cl-d54cee66"> <span class="cl-d548a81a">Death</span></p></td><td class="cl-d54d0e0a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e0b"><p class="cl-d54cee71"><span class="cl-d548a81a">25 (18.7%)</span></p></td><td class="cl-d54d0e0a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e14"><p class="cl-d54cee71"><span class="cl-d548a81a">23 (17.2%)</span></p></td><td class="cl-d54d0e0a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e15"><p class="cl-d54cee71"><span class="cl-d548a81a">22 (16.7%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e16"><p class="cl-d54cee66"> <span class="cl-d548a81a">Adverse Event</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e1f"><p class="cl-d54cee71"><span class="cl-d548a81a">9 (6.7%)</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e28"><p class="cl-d54cee71"><span class="cl-d548a81a">7 (5.2%)</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e29"><p class="cl-d54cee71"><span class="cl-d548a81a">10 (7.6%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0dd8"><p class="cl-d54cee66"> <span class="cl-d548a81a">Disease Progression</span></p></td><td class="cl-d54d0e2a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dda"><p class="cl-d54cee71"><span class="cl-d548a81a">8 (6.0%)</span></p></td><td class="cl-d54d0e2a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0de2"><p class="cl-d54cee71"><span class="cl-d548a81a">6 (4.5%)</span></p></td><td class="cl-d54d0e2a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dec"><p class="cl-d54cee71"><span class="cl-d548a81a">6 (4.5%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0dc4"><p class="cl-d54cee66"> <span class="cl-d548a81a">Lost to Follow Up</span></p></td><td class="cl-d54d0e32"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dce"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e32"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dcf"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e32"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dd0"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0dd8"><p class="cl-d54cee66"> <span class="cl-d548a81a">Missing</span></p></td><td class="cl-d54d0e2a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dda"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e2a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0de2"><p class="cl-d54cee71"><span class="cl-d548a81a">3 (2.2%)</span></p></td><td class="cl-d54d0e2a"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0dec"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e33"><p class="cl-d54cee66"> <span class="cl-d548a81a">Post-Study Reporting of Death</span></p></td><td class="cl-d54d0e3c"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e3d"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.7%)</span></p></td><td class="cl-d54d0e3c"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e3e"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e3c"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e46"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e16"><p class="cl-d54cee66"> <span class="cl-d548a81a">Suicide</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e1f"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e28"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e29"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e16"><p class="cl-d54cee66"> <span class="cl-d548a81a">Unknown</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e1f"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.7%)</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e28"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.7%)</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e29"><p class="cl-d54cee71"><span class="cl-d548a81a"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e33"><p class="cl-d54cee66"> <span class="cl-d548a81a">Lack of Efficacy</span></p></td><td class="cl-d54d0e3c"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e3d"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e3c"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e3e"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e3c"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e46"><p class="cl-d54cee71"><span class="cl-d548a81a">3 (2.3%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e50"><p class="cl-d54cee66"> <span class="cl-d548a81a">Physician Decision</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e5a"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e5b"><p class="cl-d54cee71"><span class="cl-d548a81a">3 (2.2%)</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e64"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e16"><p class="cl-d54cee66"> <span class="cl-d548a81a">Protocol Violation</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e1f"><p class="cl-d54cee71"><span class="cl-d548a81a">5 (3.7%)</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e28"><p class="cl-d54cee71"><span class="cl-d548a81a">3 (2.2%)</span></p></td><td class="cl-d54d0e1e"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e29"><p class="cl-d54cee71"><span class="cl-d548a81a">4 (3.0%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e50"><p class="cl-d54cee66"> <span class="cl-d548a81a">Withdrawal by Parent/Guardian</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e5a"><p class="cl-d54cee71"><span class="cl-d548a81a">4 (3.0%)</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e5b"><p class="cl-d54cee71"><span class="cl-d548a81a">2 (1.5%)</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e64"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d54d0e65"><p class="cl-d54cee66"> <span class="cl-d548a81a">Withdrawal by Subject</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e6e"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.7%)</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e6f"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.7%)</span></p></td><td class="cl-d54d0e51"><p class="cl-d54cee7a"><span class="cl-d548a824"></span></p></td><td class="cl-d54d0e78"><p class="cl-d54cee71"><span class="cl-d548a81a">1 (0.8%)</span></p></td></tr></tbody></table></div>
</div>
</div>
</div>
</div>
</section></section>
<section>
<section id="adverse-event-table" class="title-slide slide level1 center" data-background="#0097c3">
<h1>Adverse Event Table</h1>
<p>This table is using package <code>tables::tabular()</code> to produce a tabular object that will then be transformed into a flextable with function <code>as_flextable()</code>.</p>
</section>
<section id="adverse-event-table-preparation" class="slide level2 smaller">
<h2>Adverse Event Table preparation</h2>
<p>link: <a href="https://rconsortium.github.io/rtrs-wg/commontables.html#tables-5" class="uri">https://rconsortium.github.io/rtrs-wg/commontables.html#tables-5</a></p>
<div class="columns">
<div class="column" style="width:40%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb9"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb9-1"><a href="#cb9-1"></a>heading <span class="ot"><-</span> <span class="fu">tabular</span>(</span>
<span id="cb9-2"><a href="#cb9-2"></a> <span class="fu">Heading</span>(<span class="st">""</span>)<span class="sc">*</span><span class="dv">1</span><span class="sc">*</span></span>
<span id="cb9-3"><a href="#cb9-3"></a> <span class="fu">Heading</span>(<span class="st">""</span>)<span class="sc">*</span>count <span class="sc">~</span> </span>
<span id="cb9-4"><a href="#cb9-4"></a> <span class="fu">Heading</span>()<span class="sc">*</span>ARM, <span class="at">data =</span> ex_adsl)</span>
<span id="cb9-5"><a href="#cb9-5"></a></span>
<span id="cb9-6"><a href="#cb9-6"></a>body <span class="ot"><-</span> <span class="fu">tabular</span>( </span>
<span id="cb9-7"><a href="#cb9-7"></a> <span class="fu">Heading</span>(<span class="st">"Patients with at least one event"</span>)<span class="sc">*</span><span class="dv">1</span><span class="sc">*</span></span>
<span id="cb9-8"><a href="#cb9-8"></a> <span class="fu">Heading</span>(<span class="st">""</span>)<span class="sc">*</span>countpercentid<span class="sc">*</span><span class="fu">Arguments</span>(<span class="at">ARM =</span> ARM)<span class="sc">*</span></span>
<span id="cb9-9"><a href="#cb9-9"></a> <span class="fu">Heading</span>()<span class="sc">*</span>USUBJID <span class="sc">+</span></span>
<span id="cb9-10"><a href="#cb9-10"></a> </span>
<span id="cb9-11"><a href="#cb9-11"></a> <span class="fu">Heading</span>(<span class="st">"Total number of events"</span>)<span class="sc">*</span><span class="dv">1</span><span class="sc">*</span><span class="fu">Heading</span>(<span class="st">""</span>)<span class="sc">*</span><span class="dv">1</span> <span class="sc">+</span></span>
<span id="cb9-12"><a href="#cb9-12"></a> </span>
<span id="cb9-13"><a href="#cb9-13"></a> <span class="fu">Heading</span>()<span class="sc">*</span>AEBODSYS<span class="sc">*</span></span>
<span id="cb9-14"><a href="#cb9-14"></a> (<span class="fu">Heading</span>(<span class="st">"Patients with at least one event"</span>)<span class="sc">*</span></span>
<span id="cb9-15"><a href="#cb9-15"></a> <span class="fu">Percent</span>(<span class="at">denom =</span> ARM, <span class="at">fn =</span> countpercentid)<span class="sc">*</span></span>
<span id="cb9-16"><a href="#cb9-16"></a> <span class="fu">Heading</span>()<span class="sc">*</span>USUBJID <span class="sc">+</span></span>
<span id="cb9-17"><a href="#cb9-17"></a> <span class="fu">Heading</span>(<span class="st">"Total number of events"</span>)<span class="sc">*</span><span class="dv">1</span> <span class="sc">+</span></span>
<span id="cb9-18"><a href="#cb9-18"></a> <span class="fu">Heading</span>()<span class="sc">*</span>AEDECOD<span class="sc">*</span><span class="fu">DropEmpty</span>(<span class="at">which =</span> <span class="st">"row"</span>)<span class="sc">*</span></span>
<span id="cb9-19"><a href="#cb9-19"></a> <span class="fu">Heading</span>()<span class="sc">*</span><span class="fu">Percent</span>(<span class="at">denom =</span> ARM, <span class="at">fn =</span> countpercentid)<span class="sc">*</span></span>
<span id="cb9-20"><a href="#cb9-20"></a> <span class="fu">Heading</span>()<span class="sc">*</span>USUBJID) <span class="sc">~</span> </span>
<span id="cb9-21"><a href="#cb9-21"></a> </span>
<span id="cb9-22"><a href="#cb9-22"></a> <span class="fu">Heading</span>()<span class="sc">*</span>ARM, </span>
<span id="cb9-23"><a href="#cb9-23"></a> <span class="at">data =</span> ex_adae)</span>
<span id="cb9-24"><a href="#cb9-24"></a>tab <span class="ot"><-</span> <span class="fu">rbind</span>(heading, body)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div><div class="column" style="width:60%;">
<div class="quarto-figure quarto-figure-center">
<figure>
<p><img data-src="assets/img/AE-tables-console.png"></p>
<figcaption>console output for tab</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section id="adverse-event-table-creation" class="slide level2 smaller">
<h2>Adverse Event Table creation</h2>
<p>‘flextable’ code: <a href="https://rconsortium.github.io/rtrs-wg/commontables.html#flextable-5" class="uri">https://rconsortium.github.io/rtrs-wg/commontables.html#flextable-5</a></p>
<div class="columns">
<div class="column" style="width:40%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb10" data-code-line-numbers="1-4"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb10-1"><a href="#cb10-1"></a>ae_ft <span class="ot"><-</span> <span class="fu">as_flextable</span>(</span>
<span id="cb10-2"><a href="#cb10-2"></a> body,</span>
<span id="cb10-3"><a href="#cb10-3"></a> <span class="at">spread_first_col =</span> <span class="cn">TRUE</span>,</span>
<span id="cb10-4"><a href="#cb10-4"></a> <span class="at">add_tab =</span> <span class="cn">TRUE</span>) <span class="sc">|></span></span>
<span id="cb10-5"><a href="#cb10-5"></a> <span class="fu">align</span>(</span>
<span id="cb10-6"><a href="#cb10-6"></a> <span class="at">j =</span> <span class="dv">1</span>, <span class="at">part =</span> <span class="st">"all"</span>,</span>
<span id="cb10-7"><a href="#cb10-7"></a> <span class="at">align =</span> <span class="st">"left"</span>) <span class="sc">|></span></span>
<span id="cb10-8"><a href="#cb10-8"></a> <span class="fu">add_header_row</span>(</span>
<span id="cb10-9"><a href="#cb10-9"></a> <span class="at">values =</span> </span>
<span id="cb10-10"><a href="#cb10-10"></a> <span class="fu">c</span>(<span class="st">""</span>, <span class="fu">fmt_header_n</span>(subject_counts,</span>
<span id="cb10-11"><a href="#cb10-11"></a> <span class="at">newline =</span> <span class="cn">FALSE</span>)),</span>
<span id="cb10-12"><a href="#cb10-12"></a> <span class="at">top =</span> <span class="cn">FALSE</span>) <span class="sc">|></span> </span>
<span id="cb10-13"><a href="#cb10-13"></a> <span class="fu">hline</span>(</span>
<span id="cb10-14"><a href="#cb10-14"></a> <span class="at">i =</span> <span class="dv">1</span>,</span>
<span id="cb10-15"><a href="#cb10-15"></a> <span class="at">part =</span> <span class="st">"header"</span>, </span>
<span id="cb10-16"><a href="#cb10-16"></a> <span class="at">border =</span> <span class="fu">fp_border_default</span>(<span class="at">width =</span> <span class="dv">0</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div><div class="column" style="width:60%;">
<div class="cell">
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d5f07c20{}.cl-d5e53cca{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d5e96f8e{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d5e96fa2{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d5e96fa3{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:0;padding-top:4pt;padding-left:0;padding-right:0;line-height: 1;background-color:transparent;}.cl-d5e96fac{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d5e96fad{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:0;padding-top:4pt;padding-left:0;padding-right:0;line-height: 1;background-color:transparent;}.cl-d5e96fb6{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d5e96fb7{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d5e96fb8{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d5e98ec4{width:2.647in;background-color:transparent;vertical-align: bottom;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5e98ed8{width:1.217in;background-color:transparent;vertical-align: bottom;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5e98ed9{width:2.647in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5e98ee2{width:1.217in;background-color:transparent;vertical-align: bottom;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5e98ee3{width:2.647in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5e98ee4{width:1.217in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5e98eec{width:1.217in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5e98eed{width:2.647in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5e98ef6{width:1.217in;background-color:transparent;vertical-align: top;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d5f07c20"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d5e98ec4"><p class="cl-d5e96f8e"><span class="cl-d5e53cca"></span></p></th><th class="cl-d5e98ed8"><p class="cl-d5e96fa2"><span class="cl-d5e53cca">A: Drug X</span></p></th><th class="cl-d5e98ed8"><p class="cl-d5e96fa2"><span class="cl-d5e53cca">B: Placebo</span></p></th><th class="cl-d5e98ed8"><p class="cl-d5e96fa2"><span class="cl-d5e53cca">C: Combination</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-d5e98ed9"><p class="cl-d5e96f8e"><span class="cl-d5e53cca"></span></p></th><th class="cl-d5e98ee2"><p class="cl-d5e96fa2"><span class="cl-d5e53cca">(N=134)</span></p></th><th class="cl-d5e98ee2"><p class="cl-d5e96fa2"><span class="cl-d5e53cca">(N=134)</span></p></th><th class="cl-d5e98ee2"><p class="cl-d5e96fa2"><span class="cl-d5e53cca">(N=132)</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fa3"><span class="cl-d5e53cca">Patients with at least one event</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">122 (91.04%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">123 (91.79%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">120 (90.91%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fad"><span class="cl-d5e53cca">Total number of events</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">609</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">622</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">703</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d5e98ee3"><p class="cl-d5e96fa3"><span class="cl-d5e53cca">cl A.1</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Patients with at least one event</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">78 (58.21%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">75 (55.97%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">89 (66.42%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Total number of events</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">132</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">130</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">160</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">dcd A.1.1.1.1</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">50 (37.31%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">45 (33.58%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">63 (47.01%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb8"> <span class="cl-d5e53cca">dcd A.1.1.1.2</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">48 (35.82%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">48 (35.82%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">50 (37.31%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d5e98ee3"><p class="cl-d5e96fa3"><span class="cl-d5e53cca">cl B.1</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Patients with at least one event</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">47 (35.07%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">49 (36.57%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">43 (32.09%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Total number of events</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">56</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">60</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">62</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb8"> <span class="cl-d5e53cca">dcd B.1.1.1.1</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">47 (35.07%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">49 (36.57%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">43 (32.09%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d5e98ee3"><p class="cl-d5e96fa3"><span class="cl-d5e53cca">cl B.2</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Patients with at least one event</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">79 (58.96%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">74 (55.22%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">85 (63.43%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Total number of events</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">129</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">138</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">143</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">dcd B.2.1.2.1</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">49 (36.57%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">44 (32.84%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">52 (38.81%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb8"> <span class="cl-d5e53cca">dcd B.2.2.3.1</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">48 (35.82%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">54 (40.30%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">51 (38.06%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d5e98ee3"><p class="cl-d5e96fa3"><span class="cl-d5e53cca">cl C.1</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Patients with at least one event</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">43 (32.09%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">46 (34.33%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">43 (32.09%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Total number of events</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">55</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">63</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">64</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb8"> <span class="cl-d5e53cca">dcd C.1.1.1.3</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">43 (32.09%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">46 (34.33%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">43 (32.09%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d5e98ee3"><p class="cl-d5e96fa3"><span class="cl-d5e53cca">cl C.2</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Patients with at least one event</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">35 (26.12%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">48 (35.82%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">55 (41.04%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Total number of events</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">48</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">53</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">65</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb8"> <span class="cl-d5e53cca">dcd C.2.1.2.1</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">35 (26.12%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">48 (35.82%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">55 (41.04%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d5e98ee3"><p class="cl-d5e96fa3"><span class="cl-d5e53cca">cl D.1</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Patients with at least one event</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">79 (58.96%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">67 (50.00%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">80 (59.70%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Total number of events</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">127</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">106</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">135</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">dcd D.1.1.1.1</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">50 (37.31%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">42 (31.34%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">51 (38.06%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb8"> <span class="cl-d5e53cca">dcd D.1.1.4.2</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">48 (35.82%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">42 (31.34%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">50 (37.31%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-d5e98ee3"><p class="cl-d5e96fa3"><span class="cl-d5e53cca">cl D.2</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Patients with at least one event</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">47 (35.07%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">58 (43.28%)</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">57 (42.54%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98ee3"><p class="cl-d5e96fb7"> <span class="cl-d5e53cca">Total number of events</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">62</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">72</span></p></td><td class="cl-d5e98ee4"><p class="cl-d5e96fac"><span class="cl-d5e53cca">74</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5e98eed"><p class="cl-d5e96fb8"> <span class="cl-d5e53cca">dcd D.2.1.5.3</span></p></td><td class="cl-d5e98ef6"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">47 (35.07%)</span></p></td><td class="cl-d5e98ef6"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">58 (43.28%)</span></p></td><td class="cl-d5e98ef6"><p class="cl-d5e96fb6"><span class="cl-d5e53cca">57 (42.54%)</span></p></td></tr></tbody></table></div>
</div>
</div>
</div>
</div>
</section></section>
<section>
<section id="concomitant-medications-table" class="title-slide slide level1 center" data-background="#0097c3">
<h1>Concomitant Medications Table</h1>
<p>This table is using package ‘rtables’ to produce an object that will then be transformed into a flextable with function <code>rtables::tt_to_flextable()</code>.</p>
</section>
<section id="concomitant-medications-preparation" class="slide level2 smaller">
<h2>Concomitant Medications preparation</h2>
<p>link: <a href="https://rconsortium.github.io/rtrs-wg/commontables.html#rtables-7" class="uri">https://rconsortium.github.io/rtrs-wg/commontables.html#rtables-7</a></p>
<div class="columns">
<div class="column" style="width:40%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb11"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb11-1"><a href="#cb11-1"></a>lyt <span class="ot"><-</span> <span class="fu">basic_table</span>(</span>
<span id="cb11-2"><a href="#cb11-2"></a> <span class="at">show_colcounts =</span> <span class="cn">TRUE</span>) <span class="sc">|></span></span>
<span id="cb11-3"><a href="#cb11-3"></a> <span class="fu">split_cols_by</span>(<span class="st">"TRT01A"</span>) <span class="sc">|></span></span>
<span id="cb11-4"><a href="#cb11-4"></a> <span class="fu">analyze</span>(<span class="st">"EOSSTT"</span>, top_afun) <span class="sc">|></span></span>
<span id="cb11-5"><a href="#cb11-5"></a> <span class="fu">split_rows_by</span>(<span class="st">"EOSSTT"</span>,</span>
<span id="cb11-6"><a href="#cb11-6"></a> <span class="at">split_fun =</span> </span>
<span id="cb11-7"><a href="#cb11-7"></a> <span class="fu">keep_split_levels</span>(<span class="st">"DISCONTINUED"</span>)</span>
<span id="cb11-8"><a href="#cb11-8"></a> ) <span class="sc">|></span></span>
<span id="cb11-9"><a href="#cb11-9"></a> <span class="fu">analyze</span>(<span class="st">"DCSREAS"</span>, count_pct_afun) <span class="sc">|></span></span>
<span id="cb11-10"><a href="#cb11-10"></a> <span class="fu">split_rows_by</span>(<span class="st">"DCSREAS"</span>,</span>
<span id="cb11-11"><a href="#cb11-11"></a> <span class="at">split_fun =</span> </span>
<span id="cb11-12"><a href="#cb11-12"></a> <span class="fu">keep_split_levels</span>(<span class="st">"DEATH"</span>)</span>
<span id="cb11-13"><a href="#cb11-13"></a> ) <span class="sc">|></span></span>
<span id="cb11-14"><a href="#cb11-14"></a> <span class="fu">analyze</span>(<span class="st">"DTHCAUS"</span>, count_pct_afun)</span>
<span id="cb11-15"><a href="#cb11-15"></a></span>
<span id="cb11-16"><a href="#cb11-16"></a>tab <span class="ot"><-</span> <span class="fu">build_table</span>(lyt, adsl)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div class="cell">
<style type="text/css">
.output-smaller {
font-size='smaller'
}
</style>
</div>
</div><div class="column" style="width:60%;">
<div class="cell">
<div class="cell-output cell-output-stdout">
<div class="sourceCode" id="cb12"><pre class="sourceCode numberSource output-smaller number-lines code-with-copy"><code class="sourceCode"><span id="cb12-1"><a href="#cb12-1"></a> A: Drug X B: Placebo C: Combination</span>
<span id="cb12-2"><a href="#cb12-2"></a> (N=134) (N=134) (N=132) </span>
<span id="cb12-3"><a href="#cb12-3"></a>——————————————————————————————————————————————————————————————————————————</span>
<span id="cb12-4"><a href="#cb12-4"></a>Completed 68 (50.7%) 66 (49.3%) 73 (55.3%) </span>
<span id="cb12-5"><a href="#cb12-5"></a>Ongoing 24 (17.9%) 28 (20.9%) 21 (15.9%) </span>
<span id="cb12-6"><a href="#cb12-6"></a>DISCONTINUED </span>
<span id="cb12-7"><a href="#cb12-7"></a> ADVERSE EVENT 3 (2.2%) 6 (4.5%) 5 (3.8%) </span>
<span id="cb12-8"><a href="#cb12-8"></a> DEATH 25 (18.7%) 23 (17.2%) 22 (16.7%) </span>
<span id="cb12-9"><a href="#cb12-9"></a> LACK OF EFFICACY 2 (1.5%) 2 (1.5%) 3 (2.3%) </span>
<span id="cb12-10"><a href="#cb12-10"></a> PHYSICIAN DECISION 2 (1.5%) 3 (2.2%) 2 (1.5%) </span>
<span id="cb12-11"><a href="#cb12-11"></a> PROTOCOL VIOLATION 5 (3.7%) 3 (2.2%) 4 (3.0%) </span>
<span id="cb12-12"><a href="#cb12-12"></a> WITHDRAWAL BY PARENT/GUARDIAN 4 (3.0%) 2 (1.5%) 1 (0.8%) </span>
<span id="cb12-13"><a href="#cb12-13"></a> WITHDRAWAL BY SUBJECT 1 (0.7%) 1 (0.7%) 1 (0.8%) </span>
<span id="cb12-14"><a href="#cb12-14"></a>DEATH </span>
<span id="cb12-15"><a href="#cb12-15"></a> ADVERSE EVENT 9 (6.7%) 7 (5.2%) 10 (7.6%) </span>
<span id="cb12-16"><a href="#cb12-16"></a> DISEASE PROGRESSION 8 (6.0%) 6 (4.5%) 6 (4.5%) </span>
<span id="cb12-17"><a href="#cb12-17"></a> LOST TO FOLLOW UP 2 (1.5%) 2 (1.5%) 2 (1.5%) </span>
<span id="cb12-18"><a href="#cb12-18"></a> MISSING 2 (1.5%) 3 (2.2%) 2 (1.5%) </span>
<span id="cb12-19"><a href="#cb12-19"></a> Post-study reporting of death 1 (0.7%) 2 (1.5%) 1 (0.8%) </span>
<span id="cb12-20"><a href="#cb12-20"></a> SUICIDE 2 (1.5%) 2 (1.5%) 1 (0.8%) </span>
<span id="cb12-21"><a href="#cb12-21"></a> UNKNOWN 1 (0.7%) 1 (0.7%) 0 (0.0%) </span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
</div>
</section>
<section id="concomitant-medications-creation" class="slide level2 smaller">
<h2>Concomitant Medications creation</h2>
<div class="columns">
<div class="column" style="width:40%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb13"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb13-1"><a href="#cb13-1"></a>ft <span class="ot"><-</span> <span class="fu">tt_to_flextable</span>(tab) <span class="sc">|></span> </span>
<span id="cb13-2"><a href="#cb13-2"></a> <span class="fu">theme_booktabs</span>() <span class="sc">|></span> </span>
<span id="cb13-3"><a href="#cb13-3"></a> <span class="fu">font</span>(<span class="at">fontname =</span> <span class="st">"Open Sans"</span>) <span class="sc">|></span> </span>
<span id="cb13-4"><a href="#cb13-4"></a> <span class="fu">bold</span>(<span class="at">i =</span> <span class="sc">~</span> V2 <span class="sc">%in%</span> <span class="st">""</span>, </span>
<span id="cb13-5"><a href="#cb13-5"></a> <span class="at">j =</span> <span class="dv">1</span>, <span class="at">bold =</span> <span class="cn">TRUE</span>) <span class="sc">|></span> </span>
<span id="cb13-6"><a href="#cb13-6"></a> <span class="fu">bold</span>(<span class="at">i =</span> <span class="dv">1</span>, <span class="at">j =</span> <span class="dv">1</span>, </span>
<span id="cb13-7"><a href="#cb13-7"></a> <span class="at">bold =</span> <span class="cn">TRUE</span>) <span class="sc">|></span> </span>
<span id="cb13-8"><a href="#cb13-8"></a> <span class="fu">align</span>(<span class="at">j =</span> <span class="dv">2</span><span class="sc">:</span><span class="dv">4</span>, <span class="at">align =</span> <span class="st">"center"</span>, </span>
<span id="cb13-9"><a href="#cb13-9"></a> <span class="at">part =</span> <span class="st">"all"</span>) <span class="sc">|></span> </span>
<span id="cb13-10"><a href="#cb13-10"></a> <span class="fu">set_table_properties</span>(<span class="at">layout =</span> <span class="st">"fixed"</span>) <span class="sc">|></span> </span>
<span id="cb13-11"><a href="#cb13-11"></a> <span class="fu">autofit</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>Fonts, table layout and few other details need to be changed to produce a nice flextable.</p>
</div><div class="column" style="width:60%;">
<div class="cell">
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d6a39094{}.cl-d6995836{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d699584a{font-family:'Open Sans';font-size:10pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d699584b{font-family:'Open Sans';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d69d87da{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d69d87e4{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:3pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d69d87ee{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:0;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d69d87ef{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3pt;padding-top:3pt;padding-left:10pt;padding-right:3pt;line-height: 1.3;background-color:transparent;}.cl-d69da36e{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da382{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da383{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da38c{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(170, 170, 170, 1.00);border-top: 1.5pt solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da38d{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da38e{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da396{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da397{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(170, 170, 170, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da398{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3a0{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3a1{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3aa{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3ab{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3b4{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3b5{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3b6{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3be{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3bf{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3c8{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3c9{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3d2{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3d3{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3dc{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3dd{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3e6{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3e7{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3e8{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3f0{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3f1{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3f2{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3fa{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da3fb{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da404{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da405{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da406{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da40e{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da40f{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da418{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da419{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da422{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da423{width:2.835in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da424{width:0.877in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da42c{width:0.882in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d69da42d{width:1.206in;background-color:transparent;vertical-align: middle;border-bottom: 1.5pt solid rgba(170, 170, 170, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.tabwid {padding-top:8px;}</style><table data-quarto-disable-processing="true" class="cl-d6a39094"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d69da36e"><p class="cl-d69d87da"><span class="cl-d6995836"></span></p></th><th class="cl-d69da382"><p class="cl-d69d87e4"><span class="cl-d6995836">A: Drug X</span></p></th><th class="cl-d69da383"><p class="cl-d69d87e4"><span class="cl-d6995836">B: Placebo</span></p></th><th class="cl-d69da38c"><p class="cl-d69d87e4"><span class="cl-d6995836">C: Combination</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-d69da38d"><p class="cl-d69d87da"><span class="cl-d6995836"></span></p></th><th class="cl-d69da38e"><p class="cl-d69d87e4"><span class="cl-d6995836">(N=134)</span></p></th><th class="cl-d69da396"><p class="cl-d69d87e4"><span class="cl-d6995836">(N=134)</span></p></th><th class="cl-d69da397"><p class="cl-d69d87e4"><span class="cl-d6995836">(N=132)</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d69da398"><p class="cl-d69d87ee"><span class="cl-d699584a">Completed</span></p></td><td class="cl-d69da3a0"><p class="cl-d69d87e4"><span class="cl-d699584b">68 (50.7%)</span></p></td><td class="cl-d69da3a1"><p class="cl-d69d87e4"><span class="cl-d699584b">66 (49.3%)</span></p></td><td class="cl-d69da3aa"><p class="cl-d69d87e4"><span class="cl-d699584b">73 (55.3%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3ab"><p class="cl-d69d87ee"><span class="cl-d699584b">Ongoing</span></p></td><td class="cl-d69da3b4"><p class="cl-d69d87e4"><span class="cl-d699584b">24 (17.9%)</span></p></td><td class="cl-d69da3b5"><p class="cl-d69d87e4"><span class="cl-d699584b">28 (20.9%)</span></p></td><td class="cl-d69da3b6"><p class="cl-d69d87e4"><span class="cl-d699584b">21 (15.9%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3be"><p class="cl-d69d87ee"><span class="cl-d699584a">DISCONTINUED</span></p></td><td class="cl-d69da3bf"><p class="cl-d69d87e4"><span class="cl-d699584b"></span></p></td><td class="cl-d69da3c8"><p class="cl-d69d87e4"><span class="cl-d699584b"></span></p></td><td class="cl-d69da3c9"><p class="cl-d69d87e4"><span class="cl-d699584b"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3d2"><p class="cl-d69d87ef"><span class="cl-d699584b"> ADVERSE EVENT</span></p></td><td class="cl-d69da3d3"><p class="cl-d69d87e4"><span class="cl-d699584b">3 (2.2%)</span></p></td><td class="cl-d69da3dc"><p class="cl-d69d87e4"><span class="cl-d699584b">6 (4.5%)</span></p></td><td class="cl-d69da3dd"><p class="cl-d69d87e4"><span class="cl-d699584b">5 (3.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3d2"><p class="cl-d69d87ef"><span class="cl-d699584b"> DEATH</span></p></td><td class="cl-d69da3d3"><p class="cl-d69d87e4"><span class="cl-d699584b">25 (18.7%)</span></p></td><td class="cl-d69da3dc"><p class="cl-d69d87e4"><span class="cl-d699584b">23 (17.2%)</span></p></td><td class="cl-d69da3dd"><p class="cl-d69d87e4"><span class="cl-d699584b">22 (16.7%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3d2"><p class="cl-d69d87ef"><span class="cl-d699584b"> LACK OF EFFICACY</span></p></td><td class="cl-d69da3d3"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3dc"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3dd"><p class="cl-d69d87e4"><span class="cl-d699584b">3 (2.3%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3d2"><p class="cl-d69d87ef"><span class="cl-d699584b"> PHYSICIAN DECISION</span></p></td><td class="cl-d69da3d3"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3dc"><p class="cl-d69d87e4"><span class="cl-d699584b">3 (2.2%)</span></p></td><td class="cl-d69da3dd"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3e6"><p class="cl-d69d87ef"><span class="cl-d699584b"> PROTOCOL VIOLATION</span></p></td><td class="cl-d69da3e7"><p class="cl-d69d87e4"><span class="cl-d699584b">5 (3.7%)</span></p></td><td class="cl-d69da3e8"><p class="cl-d69d87e4"><span class="cl-d699584b">3 (2.2%)</span></p></td><td class="cl-d69da3f0"><p class="cl-d69d87e4"><span class="cl-d699584b">4 (3.0%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3e6"><p class="cl-d69d87ef"><span class="cl-d699584b"> WITHDRAWAL BY PARENT/GUARDIAN</span></p></td><td class="cl-d69da3e7"><p class="cl-d69d87e4"><span class="cl-d699584b">4 (3.0%)</span></p></td><td class="cl-d69da3e8"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3f0"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3f1"><p class="cl-d69d87ef"><span class="cl-d699584b"> WITHDRAWAL BY SUBJECT</span></p></td><td class="cl-d69da3f2"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.7%)</span></p></td><td class="cl-d69da3fa"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.7%)</span></p></td><td class="cl-d69da3fb"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da404"><p class="cl-d69d87ee"><span class="cl-d699584a">DEATH</span></p></td><td class="cl-d69da405"><p class="cl-d69d87e4"><span class="cl-d699584b"></span></p></td><td class="cl-d69da406"><p class="cl-d69d87e4"><span class="cl-d699584b"></span></p></td><td class="cl-d69da40e"><p class="cl-d69d87e4"><span class="cl-d699584b"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3e6"><p class="cl-d69d87ef"><span class="cl-d699584b"> ADVERSE EVENT</span></p></td><td class="cl-d69da3e7"><p class="cl-d69d87e4"><span class="cl-d699584b">9 (6.7%)</span></p></td><td class="cl-d69da3e8"><p class="cl-d69d87e4"><span class="cl-d699584b">7 (5.2%)</span></p></td><td class="cl-d69da3f0"><p class="cl-d69d87e4"><span class="cl-d699584b">10 (7.6%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3e6"><p class="cl-d69d87ef"><span class="cl-d699584b"> DISEASE PROGRESSION</span></p></td><td class="cl-d69da3e7"><p class="cl-d69d87e4"><span class="cl-d699584b">8 (6.0%)</span></p></td><td class="cl-d69da3e8"><p class="cl-d69d87e4"><span class="cl-d699584b">6 (4.5%)</span></p></td><td class="cl-d69da3f0"><p class="cl-d69d87e4"><span class="cl-d699584b">6 (4.5%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3d2"><p class="cl-d69d87ef"><span class="cl-d699584b"> LOST TO FOLLOW UP</span></p></td><td class="cl-d69da3d3"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3dc"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3dd"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3d2"><p class="cl-d69d87ef"><span class="cl-d699584b"> MISSING</span></p></td><td class="cl-d69da3d3"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3dc"><p class="cl-d69d87e4"><span class="cl-d699584b">3 (2.2%)</span></p></td><td class="cl-d69da3dd"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da40f"><p class="cl-d69d87ef"><span class="cl-d699584b"> Post-study reporting of death</span></p></td><td class="cl-d69da418"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.7%)</span></p></td><td class="cl-d69da419"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da422"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da3e6"><p class="cl-d69d87ef"><span class="cl-d699584b"> SUICIDE</span></p></td><td class="cl-d69da3e7"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3e8"><p class="cl-d69d87e4"><span class="cl-d699584b">2 (1.5%)</span></p></td><td class="cl-d69da3f0"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.8%)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d69da423"><p class="cl-d69d87ef"><span class="cl-d699584b"> UNKNOWN</span></p></td><td class="cl-d69da424"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.7%)</span></p></td><td class="cl-d69da42c"><p class="cl-d69d87e4"><span class="cl-d699584b">1 (0.7%)</span></p></td><td class="cl-d69da42d"><p class="cl-d69d87e4"><span class="cl-d699584b">0 (0.0%)</span></p></td></tr></tbody></table></div>
</div>
</div>
</div>
</div>
</section></section>
<section>
<section id="pagination" class="title-slide slide level1 center" data-background="#0097c3">
<h1>Pagination</h1>
<p>The pagination of tables allows you to control their position in relation to page breaks. Packages ‘tables’, ‘rtables’ and ‘flextable’ implement their pagination vision.</p>
</section>
<section id="pagination-with-flextable" class="slide level2 smaller">
<h2>Pagination with ‘flextable’</h2>
<div class="columns">
<div class="column" style="width:30%;">
<p>When working with Word or RTF, it is possible to prevents breaks between tables rows you want to stay together. Function <code>paginate()</code> let you define this pagination.</p>
<p>From <a href="https://ardata-fr.github.io/flextable-book/layout.html#pagination" class="uri">https://ardata-fr.github.io/flextable-book/layout.html#pagination</a></p>
<div class="cell">
<div class="sourceCode cell-code" id="cb14" data-code-line-numbers="6-9"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb14-1"><a href="#cb14-1"></a>ft_2 <span class="ot"><-</span> <span class="fu">tabular</span>(</span>
<span id="cb14-2"><a href="#cb14-2"></a> cut <span class="sc">*</span> clarity <span class="sc">~</span> <span class="fu">Format</span>(<span class="at">digits =</span> <span class="dv">2</span>) <span class="sc">*</span></span>
<span id="cb14-3"><a href="#cb14-3"></a> (x <span class="sc">+</span> y) <span class="sc">*</span> (mean <span class="sc">+</span> sd),</span>
<span id="cb14-4"><a href="#cb14-4"></a> <span class="at">data =</span> dat</span>
<span id="cb14-5"><a href="#cb14-5"></a>) <span class="sc">|></span> ... <span class="sc">|></span> </span>
<span id="cb14-6"><a href="#cb14-6"></a> <span class="fu">paginate</span>(</span>
<span id="cb14-7"><a href="#cb14-7"></a> <span class="at">init =</span> <span class="cn">TRUE</span>, </span>
<span id="cb14-8"><a href="#cb14-8"></a> <span class="at">group =</span> <span class="st">"COL1"</span>,</span>
<span id="cb14-9"><a href="#cb14-9"></a> <span class="at">group_def =</span> <span class="st">"nonempty"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p><a href="assets/files/example_tabular_paginated.docx">example_tabular_paginated.docx</a></p>
</div><div class="column" style="width:70%;">
<div class="quarto-figure quarto-figure-center">
<figure>
<p><img data-src="assets/img/example_tabular_paginated.png"></p>
<figcaption>paginated table in Word</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section id="pagination-with-rtables" class="slide level2 smaller">
<h2>Pagination with ‘rtables’</h2>
<div class="columns">
<div class="column" style="width:50%;">
<div class="cell">
<div class="sourceCode cell-code" id="cb15" data-code-line-numbers="17"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb15-1"><a href="#cb15-1"></a>tbl_list <span class="ot"><-</span> <span class="fu">basic_table</span>() <span class="sc">|></span></span>
<span id="cb15-2"><a href="#cb15-2"></a> <span class="fu">split_cols_by</span>(<span class="st">"ARM"</span>) <span class="sc">|></span></span>
<span id="cb15-3"><a href="#cb15-3"></a> <span class="fu">split_rows_by</span>(</span>
<span id="cb15-4"><a href="#cb15-4"></a> <span class="st">"STRATA1"</span>, </span>
<span id="cb15-5"><a href="#cb15-5"></a> <span class="at">split_fun =</span> <span class="fu">keep_split_levels</span>(<span class="fu">c</span>(<span class="st">"A"</span>, <span class="st">"B"</span>)), </span>
<span id="cb15-6"><a href="#cb15-6"></a> <span class="at">page_by =</span> <span class="cn">TRUE</span>, <span class="at">page_prefix =</span> <span class="st">"Stratum"</span>) <span class="sc">|></span></span>
<span id="cb15-7"><a href="#cb15-7"></a> <span class="fu">split_rows_by</span>(</span>
<span id="cb15-8"><a href="#cb15-8"></a> <span class="st">"RACE"</span>, </span>
<span id="cb15-9"><a href="#cb15-9"></a> <span class="at">split_fun =</span> <span class="fu">keep_split_levels</span>(<span class="fu">c</span>(<span class="st">"ASIAN"</span>, <span class="st">"WHITE"</span>))) <span class="sc">|></span></span>
<span id="cb15-10"><a href="#cb15-10"></a> <span class="fu">summarize_row_groups</span>() <span class="sc">|></span></span>
<span id="cb15-11"><a href="#cb15-11"></a> <span class="fu">analyze</span>(<span class="st">"AGE"</span>, <span class="at">afun =</span> <span class="cf">function</span>(x, ...) </span>
<span id="cb15-12"><a href="#cb15-12"></a> <span class="fu">in_rows</span>(</span>
<span id="cb15-13"><a href="#cb15-13"></a> <span class="st">"mean (sd)"</span> <span class="ot">=</span> <span class="fu">rcell</span>(<span class="fu">c</span>(<span class="fu">mean</span>(x), <span class="fu">sd</span>(x)), <span class="at">format =</span> <span class="st">"xx.x (xx.x)"</span>),</span>
<span id="cb15-14"><a href="#cb15-14"></a> <span class="st">"range"</span> <span class="ot">=</span> <span class="fu">rcell</span>(<span class="fu">range</span>(x), <span class="at">format =</span> <span class="st">"xx.x - xx.x"</span>)</span>
<span id="cb15-15"><a href="#cb15-15"></a> )) <span class="sc">|></span> </span>
<span id="cb15-16"><a href="#cb15-16"></a> <span class="fu">build_table</span>(formatters<span class="sc">::</span>ex_adsl) <span class="sc">|></span> </span>
<span id="cb15-17"><a href="#cb15-17"></a> <span class="fu">paginate_table</span>(<span class="at">lpp =</span> <span class="dv">20</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div><div class="column" style="width:50%;">
<p>Now let’s use ‘officer’ to add tables into a Word document, one table per page.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb16"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb16-1"><a href="#cb16-1"></a>doc <span class="ot"><-</span> <span class="fu">read_docx</span>()</span>
<span id="cb16-2"><a href="#cb16-2"></a><span class="cf">for</span>(name <span class="cf">in</span> <span class="fu">names</span>(tbl_list)) {</span>
<span id="cb16-3"><a href="#cb16-3"></a> ft <span class="ot"><-</span> <span class="fu">tt_to_flextable</span>(tbl_list[[name]]) <span class="sc">|></span> </span>
<span id="cb16-4"><a href="#cb16-4"></a> <span class="fu">theme_booktabs</span>() <span class="sc">|></span> </span>
<span id="cb16-5"><a href="#cb16-5"></a> <span class="fu">font</span>(<span class="at">fontname =</span> <span class="st">"Open Sans"</span>)</span>
<span id="cb16-6"><a href="#cb16-6"></a> doc <span class="ot"><-</span> <span class="fu">body_add_flextable</span>(doc, ft)</span>
<span id="cb16-7"><a href="#cb16-7"></a> doc <span class="ot"><-</span> <span class="fu">body_add_break</span>(doc)</span>
<span id="cb16-8"><a href="#cb16-8"></a>}</span>
<span id="cb16-9"><a href="#cb16-9"></a>doc <span class="ot"><-</span> <span class="fu">body_remove</span>(doc)</span>