TL Catalog
  1. Listings
  2. Demographic
  3. LSIDEM01
  • Introduction

  • Index

  • Tables
    • Adverse Events
      • TSFAE01A
      • TSFAE01B
      • TSFAE02
      • TSFAE02A
      • TSFAE03
      • TSFAE03A
      • TSFAE04
      • TSFAE04A
      • TSFAE05
      • TSFAE05A
      • TSFAE06A
      • TSFAE06B
      • TSFAE07A
      • TSFAE07B
      • TSFAE08
      • TSFAE09
      • TSFAE10
      • TSFAE11
      • TSFAE12
      • TSFAE13
      • TSFAE14
      • TSFAE15
      • TSFAE16
      • TSFAE17A
      • TSFAE17B
      • TSFAE17C
      • TSFAE17D
      • TSFAE19A
      • TSFAE19B
      • TSFAE19C
      • TSFAE19D
      • TSFAE20A
      • TSFAE20B
      • TSFAE20C
      • TSFAE21A
      • TSFAE21B
      • TSFAE21C
      • TSFAE21D
      • TSFAE22A
      • TSFAE22B
      • TSFAE22C
      • TSFAE23A
      • TSFAE23B
      • TSFAE23C
      • TSFAE23D
      • TSFAE24A
      • TSFAE24B
      • TSFAE24C
      • TSFAE24D
      • TSFAE24F
      • TSFDTH01
    • Clinical Laboratory Evaluation
      • TSFLAB01
      • TSFLAB01A
      • TSFLAB02
      • TSFLAB02A
      • TSFLAB02B
      • TSFLAB03
      • TSFLAB03A
      • TSFLAB04A
      • TSFLAB04B
      • TSFLAB05
      • TSFLAB06
      • TSFLAB07
    • Demographic
      • TSIDEM01
      • TSIDEM02
      • TSIMH01
    • Disposition of Subjects
      • TSIDS01
      • TSIDS02
      • TSIDS02A
    • Electrocardiograms
      • TSFECG01
      • TSFECG01A
      • TSFECG02
      • TSFECG03
      • TSFECG04
      • TSFECG05
    • Exposure
      • TSIEX01
      • TSIEX02
      • TSIEX03
      • TSIEX04
      • TSIEX06
      • TSIEX07
      • TSIEX08
      • TSIEX09
      • TSIEX10
      • TSIEX11
    • Pharmacokinetics
      • TPK01A
      • TPK01B
      • TPK02
      • TPK03
    • Prior and Concomitant Therapies
      • TSICM01
      • TSICM02
      • TSICM03
      • TSICM04
      • TSICM05
      • TSICM06
      • TSICM07
      • TSICM08
    • Vital Signs and Physical Findings
      • TSFVIT01
      • TSFVIT01A
      • TSFVIT02
      • TSFVIT03
      • TSFVIT04
      • TSFVIT05
      • TSFVIT06
  • Listings
    • Adverse Events
      • LSFAE01
      • LSFAE02
      • LSFAE03
      • LSFAE04
      • LSFAE05
      • LSFAE06A
      • LSFAE06B
      • LSFDTH01
    • Clinical Laboratory Evaluation
      • LSFLAB01
    • Demographic
      • LSIDEM01
      • LSIDEM02
      • LSIMH01
    • Disposition of Subjects
      • LSIDS01
      • LSIDS02
      • LSIDS03
      • LSIDS04
      • LSIDS05
    • Electrocardiograms
      • LSFECG01
      • LSFECG02
    • Exposure
      • LSIEX01
      • LSIEX02
      • LSIEX03
    • Prior and Concomitant Therapies
      • LSICM01
    • Vital Signs and Physical Findings
      • LSFVIT01
      • LSFVIT02

  • Reproducibility

  • Changelog

On this page

  • Output
  • Edit this page
  • Report an issue
  1. Listings
  2. Demographic
  3. LSIDEM01

LSIDEM01

Listing of Demographics and Baseline Characteristics


Output

  • Preview
Code
# Program Name:              lsidem01.R

# Prep environment

library(envsetup)
library(tern)
library(dplyr)
library(rtables)
library(rlistings)
library(junco)

# Define script level parameters

tblid <- "LSIDEM01"
fileid <- tblid
popfl <- "FASFL"
trtvar <- "TRT01P"
key_cols <- c("COL0", "COL1")
disp_cols <- paste0("COL", 0:10)
concat_sep <- " / "
tab_titles <- get_titles_from_file(input_path = '../../_data/', tblid)
string_map <- default_str_map

# Process data

adsl <- pharmaverseadamjnj::adsl %>%
  filter(!!rlang::sym(popfl) == "Y")

lsting <- adsl %>%
  mutate(
    AGE = explicit_na(as.character(AGE), ""),
    SEX = explicit_na(SEX, ""),
    RACE_DECODE = explicit_na(RACE_DECODE, ""),
    COL0 = explicit_na(.data[[trtvar]], ""),
    COL1 = explicit_na(USUBJID, ""),
    COL2 = explicit_na(REGION1, ""),
    COL3 = explicit_na(COUNTRY_DECODE, ""),
    COL4 = explicit_na(toupper(format(RFICDT, "%d%b%Y")), ""),
    COL5 = paste(AGE, SEX, RACE_DECODE, sep = concat_sep),
    COL6 = explicit_na(ETHNIC_DECODE, ""),
    COL7 = explicit_na(
      tidytlg::roundSAS(WEIGHTBL, digits = 1, as_char = TRUE, na_char = ""),
      ""
    ),
    COL8 = explicit_na(
      tidytlg::roundSAS(HEIGHTBL, digits = 1, as_char = TRUE, na_char = ""),
      ""
    ),
    COL9 = explicit_na(
      tidytlg::roundSAS(BMIBL, digits = 2, as_char = TRUE, na_char = ""),
      ""
    ),
    # Optional Column: COL10/BSABL
    COL10 = explicit_na(
      tidytlg::roundSAS(BSABL, digits = 2, as_char = TRUE, na_char = ""),
      ""
    ),
  ) %>%
  arrange(COL0, COL1)

lsting <- var_relabel(
  lsting,
  COL0 = "Treatment Group",
  COL1 = "Subject ID",
  COL2 = "Region",
  COL3 = paste("Country", "Territory", sep = concat_sep),
  COL4 = "Informed Consent Date",
  COL5 = paste("Age (years)", "Sex", "Race", sep = concat_sep),
  COL6 = "Ethnicity",
  COL7 = "Weight (kg)",
  COL8 = "Height (cm)",
  COL9 = "BMI (kg/m~[super 2])",
  # Optional Column: COL10/BSABL
  COL10 = "BSA (m~[super 2])"
)

# Build listing

result <- rlistings::as_listing(
  df = lsting,
  key_cols = key_cols,
  disp_cols = disp_cols
)

# Add titles and footnotes

result <- set_titles(result, tab_titles)

# Output listing

tt_to_tlgrtf(string_map = string_map, tt = head(result, 100), file = fileid, orientation = "landscape")

LSIDEM01: Listing of Demographics and Baseline Characteristics; Full Analysis Set (Study jjcs - core)

Treatment Group

Subject ID

Region

Country / Territory

Informed Consent Date

Age (years) / Sex / Race

Ethnicity

Weight (kg)

Height (cm)

BMI (kg/m2)

BSA (m2)

Xanomeline High Dose

01-701-1028

NA

United States of America

11JUL2013

71 / M / Asian

Not Hispanic or Latino

68.0

103.0

101.00

72.00

01-701-1034

NA

United States of America

24JUN2014

77 / F / White

Unknown

75.0

47.0

142.00

81.00

01-701-1133

NA

United States of America

23OCT2012

81 / F / Other

Not Hispanic or Latino

117.0

76.0

87.00

90.00

01-701-1146

NA

United States of America

07MAY2013

75 / F / Unknown

Not Hispanic or Latino

119.0

67.0

134.00

135.00

01-701-1148

NA

United States of America

14AUG2013

57 / M / Not reported

Unknown

10.0

126.0

14.00

64.00

01-701-1180

NA

United States of America

28JAN2013

56 / M / American Indian or Alaska Native

Not reported

14.0

8.0

24.00

66.00

01-701-1181

NA

United States of America

26NOV2013

79 / F / Not reported

Unknown

107.0

36.0

137.00

31.00

01-701-1239

NA

United States of America

28DEC2013

56 / M / White

Unknown

119.0

110.0

54.00

114.00

01-701-1275

NA

United States of America

25JAN2014

61 / M / White

Not reported

100.0

118.0

108.00

37.00

01-701-1287

NA

United States of America

17JAN2014

56 / F / Multiple

Unknown

23.0

71.0

47.00

29.00

01-701-1302

NA

United States of America

20AUG2013

61 / M / Asian

Not Hispanic or Latino

66.0

64.0

76.00

115.00

01-701-1360

NA

United States of America

24JUL2013

67 / M / Multiple

Unknown

10.0

38.0

91.00

96.00

01-701-1383

NA

United States of America

22JAN2013

72 / F / Native Hawaiian or other Pacific Islander

Unknown

73.0

46.0

62.00

16.00

01-701-1444

NA

United States of America

31DEC2012

63 / M / American Indian or Alaska Native

Unknown

16.0

125.0

129.00

26.00

01-703-1076

NA

United States of America

17OCT2013

69 / M / White

Not Hispanic or Latino

129.0

32.0

74.00

135.00

01-703-1258

NA

United States of America

10JUL2012

78 / F / Black or African American

Not Hispanic or Latino

24.0

143.0

113.00

48.00

01-703-1295

NA

United States of America

24OCT2013

88 / F / Other

Not Hispanic or Latino

111.0

88.0

139.00

138.00

01-703-1335

NA

United States of America

28FEB2014

67 / F / Not reported

Not Hispanic or Latino

20.0

45.0

141.00

97.00

01-703-1403

NA

United States of America

05DEC2012

67 / M / Multiple

Unknown

104.0

118.0

142.00

13.00

01-703-1439

NA

United States of America

04MAR2014

76 / F / White

Hispanic or Latino

3.0

23.0

60.00

87.00

01-704-1008

NA

United States of America

06JAN2013

76 / F / White

Hispanic or Latino

70.0

4.0

122.00

36.00

01-704-1017

NA

United States of America

20SEP2013

77 / M / Asian

Unknown

123.0

98.0

33.00

137.00

01-704-1065

NA

United States of America

17OCT2013

75 / M / Multiple

Unknown

74.0

34.0

58.00

51.00

01-704-1074

NA

United States of America

19JAN2014

80 / F / Native Hawaiian or other Pacific Islander

Not Hispanic or Latino

59.0

9.0

29.00

149.00

01-704-1093

NA

United States of America

22FEB2013

79 / M / American Indian or Alaska Native

Hispanic or Latino

84.0

11.0

143.00

10.00

01-704-1241

NA

United States of America

14AUG2013

86 / M / Not reported

Unknown

7.0

82.0

57.00

69.00

01-704-1266

NA

United States of America

05OCT2013

82 / M / Multiple

Not reported

122.0

31.0

61.00

35.00

01-704-1332

NA

United States of America

24NOV2013

80 / M / Multiple

Not reported

16.0

118.0

21.00

45.00

01-705-1280

NA

United States of America

11JAN2014

56 / F / Native Hawaiian or other Pacific Islander

Unknown

147.0

6.0

108.00

80.00

01-705-1281

NA

United States of America

26NOV2013

73 / F / Not reported

Not Hispanic or Latino

90.0

137.0

38.00

98.00

01-705-1303

NA

United States of America

10DEC2013

72 / M / Unknown

Hispanic or Latino

52.0

48.0

3.00

30.00

01-705-1310

NA

United States of America

26OCT2013

74 / F / Native Hawaiian or other Pacific Islander

Unknown

62.0

68.0

9.00

50.00

01-705-1377

NA

United States of America

29DEC2013

63 / F / Unknown

Not Hispanic or Latino

82.0

75.0

114.00

16.00

01-705-1382

NA

United States of America

09MAY2013

82 / M / Multiple

Not reported

54.0

137.0

114.00

114.00

01-706-1049

NA

United States of America

30APR2013

60 / F / Native Hawaiian or other Pacific Islander

Not Hispanic or Latino

91.0

116.0

129.00

31.00

01-708-1178

NA

United States of America

13DEC2013

77 / F / Unknown

Unknown

123.0

89.0

4.00

122.00

01-708-1213

NA

United States of America

01FEB2013

76 / F / Unknown

Not Hispanic or Latino

111.0

34.0

9.00

31.00

01-708-1216

NA

United States of America

14OCT2012

78 / M / Asian

Not Hispanic or Latino

4.0

53.0

129.00

86.00

01-708-1236

NA

United States of America

08SEP2013

86 / F / White

Not Hispanic or Latino

99.0

72.0

98.00

84.00

01-708-1336

NA

United States of America

21NOV2012

73 / M / Other

Unknown

30.0

88.0

135.00

88.00

01-708-1347

NA

United States of America

11APR2013

61 / F / White

Hispanic or Latino

45.0

75.0

104.00

117.00

01-708-1372

NA

United States of America

03APR2013

84 / M / Not reported

Not reported

134.0

10.0

80.00

122.00

01-708-1406

NA

United States of America

06DEC2013

71 / F / Not reported

Not Hispanic or Latino

64.0

10.0

135.00

61.00

01-709-1029

NA

United States of America

10DEC2012

82 / M / Other

Not reported

138.0

1.0

139.00

27.00

01-709-1099

NA

United States of America

14OCT2013

79 / F / Multiple

Unknown

138.0

47.0

137.00

50.00

01-709-1168

NA

United States of America

25JUL2013

72 / F / American Indian or Alaska Native

Not reported

141.0

28.0

5.00

76.00

01-709-1238

NA

United States of America

02MAY2013

69 / M / White

Unknown

92.0

106.0

100.00

59.00

01-709-1309

NA

United States of America

09JUN2013

65 / M / American Indian or Alaska Native

Unknown

87.0

59.0

23.00

21.00

01-709-1329

NA

United States of America

01AUG2013

70 / M / Native Hawaiian or other Pacific Islander

Unknown

41.0

24.0

73.00

43.00

01-709-1424

NA

United States of America

15FEB2013

77 / M / Other

Not Hispanic or Latino

7.0

18.0

150.00

99.00

01-710-1006

NA

United States of America

27JAN2013

77 / M / Asian

Hispanic or Latino

38.0

10.0

54.00

122.00

01-710-1021

NA

United States of America

19SEP2013

79 / M / Native Hawaiian or other Pacific Islander

Not reported

95.0

142.0

85.00

65.00

01-710-1070

NA

United States of America

28AUG2012

85 / F / Unknown

Hispanic or Latino

21.0

104.0

72.00

55.00

01-710-1137

NA

United States of America

03OCT2013

79 / F / Multiple

Hispanic or Latino

63.0

101.0

59.00

55.00

01-710-1142

NA

United States of America

12SEP2012

76 / F / Not reported

Not Hispanic or Latino

23.0

88.0

4.00

25.00

01-710-1187

NA

United States of America

26OCT2012

78 / F / Unknown

Hispanic or Latino

85.0

130.0

67.00

50.00

01-710-1249

NA

United States of America

19DEC2013

79 / M / Not reported

Not Hispanic or Latino

136.0

61.0

97.00

84.00

01-710-1278

NA

United States of America

13DEC2012

81 / M / Asian

Hispanic or Latino

25.0

119.0

28.00

76.00

01-710-1354

NA

United States of America

29OCT2012

73 / M / Black or African American

Not Hispanic or Latino

53.0

140.0

69.00

36.00

01-710-1408

NA

United States of America

26DEC2012

80 / M / Multiple

Not reported

4.0

30.0

5.00

35.00

01-711-1012

NA

United States of America

20MAR2013

67 / F / Native Hawaiian or other Pacific Islander

Hispanic or Latino

76.0

90.0

56.00

67.00

01-711-1433

NA

United States of America

23JAN2013

84 / F / Asian

Hispanic or Latino

85.0

33.0

89.00

29.00

01-713-1106

NA

United States of America

03OCT2012

74 / M / Not reported

Not reported

24.0

66.0

130.00

150.00

01-713-1141

NA

United States of America

23MAY2013

79 / M / White

Not reported

93.0

88.0

60.00

73.00

01-713-1209

NA

United States of America

16MAY2013

77 / F / Black or African American

Not reported

127.0

132.0

63.00

131.00

01-714-1288

NA

United States of America

24NOV2013

77 / M / Multiple

Not Hispanic or Latino

109.0

16.0

11.00

72.00

01-714-1425

NA

United States of America

11AUG2013

81 / M / Black or African American

Unknown

124.0

13.0

4.00

81.00

01-715-1319

NA

United States of America

03FEB2013

65 / M / Multiple

Unknown

102.0

103.0

110.00

60.00

01-715-1321

NA

United States of America

06FEB2014

75 / F / Native Hawaiian or other Pacific Islander

Hispanic or Latino

79.0

32.0

30.00

61.00

01-716-1030

NA

United States of America

25DEC2013

83 / F / Black or African American

Not Hispanic or Latino

47.0

13.0

100.00

71.00

01-716-1071

NA

United States of America

03JUN2013

78 / F / Black or African American

Hispanic or Latino

128.0

20.0

120.00

6.00

01-716-1189

NA

United States of America

07OCT2012

81 / M / Asian

Hispanic or Latino

145.0

119.0

68.00

141.00

01-716-1229

NA

United States of America

14FEB2013

73 / F / Asian

Not Hispanic or Latino

107.0

29.0

89.00

73.00

01-716-1364

NA

United States of America

27JUN2013

84 / F / Unknown

Not reported

10.0

69.0

45.00

96.00

01-716-1373

NA

United States of America

24NOV2012

74 / M / American Indian or Alaska Native

Unknown

50.0

41.0

76.00

87.00

01-716-1418

NA

United States of America

27APR2013

80 / F / Native Hawaiian or other Pacific Islander

Hispanic or Latino

15.0

19.0

125.00

145.00

01-716-1447

NA

United States of America

10DEC2013

72 / F / Unknown

Hispanic or Latino

10.0

39.0

147.00

15.00

01-717-1109

NA

United States of America

20JAN2014

84 / M / Asian

Not reported

100.0

57.0

110.00

97.00

01-717-1174

NA

United States of America

16JAN2013

73 / M / American Indian or Alaska Native

Not Hispanic or Latino

149.0

82.0

135.00

91.00

01-717-1357

NA

United States of America

21APR2013

77 / M / White

Not Hispanic or Latino

114.0

75.0

20.00

70.00

01-718-1101

NA

United States of America

01FEB2013

82 / M / Asian

Not Hispanic or Latino

90.0

19.0

60.00

22.00

01-718-1328

NA

United States of America

28JAN2013

86 / M / Not reported

Hispanic or Latino

68.0

58.0

131.00

16.00

01-718-1371

NA

United States of America

11APR2013

69 / F / Unknown

Hispanic or Latino

22.0

136.0

1.00

85.00

01-718-1427

NA

United States of America

13DEC2012

74 / F / Black or African American

Hispanic or Latino

20.0

30.0

134.00

24.00

Xanomeline Low Dose

01-701-1033

NA

United States of America

10MAR2014

74 / M / Multiple

Not reported

63.0

31.0

14.00

48.00

01-701-1097

NA

United States of America

23DEC2013

68 / M / Other

Unknown

17.0

34.0

4.00

107.00

01-701-1111

NA

United States of America

25AUG2012

81 / F / White

Not reported

3.0

54.0

80.00

92.00

01-701-1115

NA

United States of America

23NOV2012

84 / M / Black or African American

Not Hispanic or Latino

105.0

124.0

129.00

52.00

01-701-1188

NA

United States of America

03FEB2013

71 / M / White

Not reported

88.0

53.0

27.00

52.00

01-701-1192

NA

United States of America

08JUL2012

80 / F / Not reported

Not Hispanic or Latino

35.0

23.0

133.00

22.00

01-701-1211

NA

United States of America

30OCT2012

76 / F / Other

Hispanic or Latino

6.0

108.0

146.00

57.00

01-701-1294

NA

United States of America

17MAR2013

67 / M / Other

Hispanic or Latino

67.0

13.0

129.00

131.00

01-701-1317

NA

United States of America

10MAY2014

68 / M / Unknown

Unknown

73.0

25.0

82.00

38.00

01-701-1324

NA

United States of America

16SEP2012

79 / M / Asian

Unknown

92.0

45.0

30.00

95.00

01-701-1341

NA

United States of America

22DEC2012

51 / M / American Indian or Alaska Native

Not reported

132.0

22.0

107.00

125.00

01-701-1429

NA

United States of America

25FEB2013

84 / F / American Indian or Alaska Native

Hispanic or Latino

71.0

144.0

103.00

86.00

01-701-1442

NA

United States of America

17OCT2013

57 / F / Asian

Unknown

134.0

108.0

39.00

45.00

01-702-1082

NA

United States of America

03JUL2013

84 / F / Asian

Not Hispanic or Latino

127.0

109.0

109.00

139.00

01-703-1086

NA

United States of America

22AUG2012

71 / M / Multiple

Unknown

78.0

79.0

129.00

85.00

01-703-1119

NA

United States of America

02FEB2013

81 / F / Native Hawaiian or other Pacific Islander

Hispanic or Latino

69.0

132.0

120.00

121.00

[lsidem01.docx][/usr/lib/rstudio-server/bin/quarto/share/rmd/rmd.R] 12JAN2026, 16:09

Download RTF file

LSFLAB01
LSIDEM02
Source Code
---
title: LSIDEM01
subtitle: Listing of Demographics and Baseline Characteristics
---

------------------------------------------------------------------------

{{< include ../../_utils/envir_hook.qmd >}}

```{r setup, echo = FALSE, warning = FALSE, message = FALSE}

options(docx.add_datetime = FALSE, tidytlg.add_datetime = FALSE)
envsetup_config_name <- "default"

# Path to the combined config file
envsetup_file_path <- file.path("../..", "envsetup.yml")

Sys.setenv(ENVSETUP_ENVIRON = '')
library(envsetup)
loaded_config <- config::get(config = envsetup_config_name, file = envsetup_file_path)
envsetup::rprofile(loaded_config)


dpscomp <- compound
dpspdr <- paste(protocol,dbrelease,rpteff,sep="__")

aptcomp <- compound
aptpdr <- paste(protocol,dbrelease,rpteff,sep="__")

###### Study specific updates (formerly in envre)

dpscomp <- "standards"
dpspdr <- "jjcs__NULL__jjcs - core"

apt <- FALSE
library(junco)
default_str_map <- rbind(default_str_map, c("&ctcae", "5.0"))

```

## Output

:::: panel-tabset
## {{< fa regular file-lines sm fw >}} Preview

```{r variant1, results='hide', warning = FALSE, message = FALSE}

# Program Name:              lsidem01.R

# Prep environment

library(envsetup)
library(tern)
library(dplyr)
library(rtables)
library(rlistings)
library(junco)

# Define script level parameters

tblid <- "LSIDEM01"
fileid <- tblid
popfl <- "FASFL"
trtvar <- "TRT01P"
key_cols <- c("COL0", "COL1")
disp_cols <- paste0("COL", 0:10)
concat_sep <- " / "
tab_titles <- get_titles_from_file(input_path = '../../_data/', tblid)
string_map <- default_str_map

# Process data

adsl <- pharmaverseadamjnj::adsl %>%
  filter(!!rlang::sym(popfl) == "Y")

lsting <- adsl %>%
  mutate(
    AGE = explicit_na(as.character(AGE), ""),
    SEX = explicit_na(SEX, ""),
    RACE_DECODE = explicit_na(RACE_DECODE, ""),
    COL0 = explicit_na(.data[[trtvar]], ""),
    COL1 = explicit_na(USUBJID, ""),
    COL2 = explicit_na(REGION1, ""),
    COL3 = explicit_na(COUNTRY_DECODE, ""),
    COL4 = explicit_na(toupper(format(RFICDT, "%d%b%Y")), ""),
    COL5 = paste(AGE, SEX, RACE_DECODE, sep = concat_sep),
    COL6 = explicit_na(ETHNIC_DECODE, ""),
    COL7 = explicit_na(
      tidytlg::roundSAS(WEIGHTBL, digits = 1, as_char = TRUE, na_char = ""),
      ""
    ),
    COL8 = explicit_na(
      tidytlg::roundSAS(HEIGHTBL, digits = 1, as_char = TRUE, na_char = ""),
      ""
    ),
    COL9 = explicit_na(
      tidytlg::roundSAS(BMIBL, digits = 2, as_char = TRUE, na_char = ""),
      ""
    ),
    # Optional Column: COL10/BSABL
    COL10 = explicit_na(
      tidytlg::roundSAS(BSABL, digits = 2, as_char = TRUE, na_char = ""),
      ""
    ),
  ) %>%
  arrange(COL0, COL1)

lsting <- var_relabel(
  lsting,
  COL0 = "Treatment Group",
  COL1 = "Subject ID",
  COL2 = "Region",
  COL3 = paste("Country", "Territory", sep = concat_sep),
  COL4 = "Informed Consent Date",
  COL5 = paste("Age (years)", "Sex", "Race", sep = concat_sep),
  COL6 = "Ethnicity",
  COL7 = "Weight (kg)",
  COL8 = "Height (cm)",
  COL9 = "BMI (kg/m~[super 2])",
  # Optional Column: COL10/BSABL
  COL10 = "BSA (m~[super 2])"
)

# Build listing

result <- rlistings::as_listing(
  df = lsting,
  key_cols = key_cols,
  disp_cols = disp_cols
)

# Add titles and footnotes

result <- set_titles(result, tab_titles)

# Output listing

tt_to_tlgrtf(string_map = string_map, tt = head(result, 100), file = fileid, orientation = "landscape")
```
```{r result1, echo=FALSE, message=FALSE, warning=FALSE, test = list(result_v1 = "result")}
tt_to_flextable_j(head(result,100), tblid, string_map = string_map)
```

[Download RTF file](`r paste0(tolower(tblid), '.rtf')`)
::::

Made with ❤️ by the J&J Team

  • Edit this page
  • Report an issue
Cookie Preferences