diff --git a/main/404.html b/main/404.html index 95742017..d174ada7 100644 --- a/main/404.html +++ b/main/404.html @@ -32,7 +32,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006
vignettes/col_formatting.Rmd
col_formatting.Rmd
as_listing example. default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left") + all = fmt_config(na_str = "<No data>", align = "left") ) lsting_2 <- as_listing( @@ -271,8 +253,8 @@ Default Formatting in as_listing default_formatting list as follows: default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_3 <- as_listing( @@ -301,7 +283,7 @@ Default Formatting in as_listing #> 10.32 2.00 MODERATE #> <No data> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE Along with the format strings listed by -formatters::list_valid_format_labels, we can also specify a +formatters::list_valid_format_labels, we can also specify a format function to allow for more customized formats in our listing. In the following example, we will define and apply a custom format function to format date (POSIXt class) columns in @@ -313,9 +295,9 @@ Default Formatting in as_listing } default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) lsting_4 <- as_listing( @@ -400,13 +382,13 @@ Column-Wise Formatting in as the two remaining numeric columns. default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) col_fmt <- list( - BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_5 <- as_listing( diff --git a/main/articles/index.html b/main/articles/index.html index 1fcc2cb3..feaf3121 100644 --- a/main/articles/index.html +++ b/main/articles/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/articles/pagination.html b/main/articles/pagination.html index acf54900..b3fb3c66 100644 --- a/main/articles/pagination.html +++ b/main/articles/pagination.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/pagination.Rmd pagination.Rmd @@ -740,7 +722,7 @@ cat function to make the output more easily readable in the console: -cat(export_as_txt(lsting)) +cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function. @@ -1006,7 +988,7 @@ Pagination by Parameter for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, ": ", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] - subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) + subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } diff --git a/main/articles/ref_footnotes.html b/main/articles/ref_footnotes.html index 093212c6..55066038 100644 --- a/main/articles/ref_footnotes.html +++ b/main/articles/ref_footnotes.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/ref_footnotes.Rmd ref_footnotes.Rmd @@ -224,7 +206,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -236,7 +218,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -290,7 +272,7 @@ Referential Footnotes Workaroundset.seed(1) # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -303,7 +285,7 @@ Referential Footnotes Workaround dplyr::select(-ASTDTF) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -351,7 +333,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -363,7 +345,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -413,8 +395,8 @@ Referential Footnotes Workaround # Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left") + all = fmt_config(na_str = "<No data>", align = "left") ) lsting_2 <- as_listing( @@ -271,8 +253,8 @@ Default Formatting in as_listing default_formatting list as follows: default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_3 <- as_listing( @@ -301,7 +283,7 @@ Default Formatting in as_listing #> 10.32 2.00 MODERATE #> <No data> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE Along with the format strings listed by -formatters::list_valid_format_labels, we can also specify a +formatters::list_valid_format_labels, we can also specify a format function to allow for more customized formats in our listing. In the following example, we will define and apply a custom format function to format date (POSIXt class) columns in @@ -313,9 +295,9 @@ Default Formatting in as_listing } default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) lsting_4 <- as_listing( @@ -400,13 +382,13 @@ Column-Wise Formatting in as the two remaining numeric columns. default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) col_fmt <- list( - BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_5 <- as_listing( diff --git a/main/articles/index.html b/main/articles/index.html index 1fcc2cb3..feaf3121 100644 --- a/main/articles/index.html +++ b/main/articles/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/articles/pagination.html b/main/articles/pagination.html index acf54900..b3fb3c66 100644 --- a/main/articles/pagination.html +++ b/main/articles/pagination.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/pagination.Rmd pagination.Rmd @@ -740,7 +722,7 @@ cat function to make the output more easily readable in the console: -cat(export_as_txt(lsting)) +cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function. @@ -1006,7 +988,7 @@ Pagination by Parameter for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, ": ", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] - subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) + subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } diff --git a/main/articles/ref_footnotes.html b/main/articles/ref_footnotes.html index 093212c6..55066038 100644 --- a/main/articles/ref_footnotes.html +++ b/main/articles/ref_footnotes.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/ref_footnotes.Rmd ref_footnotes.Rmd @@ -224,7 +206,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -236,7 +218,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -290,7 +272,7 @@ Referential Footnotes Workaroundset.seed(1) # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -303,7 +285,7 @@ Referential Footnotes Workaround dplyr::select(-ASTDTF) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -351,7 +333,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -363,7 +345,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -413,8 +395,8 @@ Referential Footnotes Workaround # Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
as_listing default_formatting list as follows: default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_3 <- as_listing( @@ -301,7 +283,7 @@ Default Formatting in as_listing #> 10.32 2.00 MODERATE #> <No data> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE Along with the format strings listed by -formatters::list_valid_format_labels, we can also specify a +formatters::list_valid_format_labels, we can also specify a format function to allow for more customized formats in our listing. In the following example, we will define and apply a custom format function to format date (POSIXt class) columns in @@ -313,9 +295,9 @@ Default Formatting in as_listing } default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) lsting_4 <- as_listing( @@ -400,13 +382,13 @@ Column-Wise Formatting in as the two remaining numeric columns. default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) col_fmt <- list( - BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_5 <- as_listing( diff --git a/main/articles/index.html b/main/articles/index.html index 1fcc2cb3..feaf3121 100644 --- a/main/articles/index.html +++ b/main/articles/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/articles/pagination.html b/main/articles/pagination.html index acf54900..b3fb3c66 100644 --- a/main/articles/pagination.html +++ b/main/articles/pagination.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/pagination.Rmd pagination.Rmd @@ -740,7 +722,7 @@ cat function to make the output more easily readable in the console: -cat(export_as_txt(lsting)) +cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function. @@ -1006,7 +988,7 @@ Pagination by Parameter for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, ": ", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] - subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) + subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } diff --git a/main/articles/ref_footnotes.html b/main/articles/ref_footnotes.html index 093212c6..55066038 100644 --- a/main/articles/ref_footnotes.html +++ b/main/articles/ref_footnotes.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/ref_footnotes.Rmd ref_footnotes.Rmd @@ -224,7 +206,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -236,7 +218,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -290,7 +272,7 @@ Referential Footnotes Workaroundset.seed(1) # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -303,7 +285,7 @@ Referential Footnotes Workaround dplyr::select(-ASTDTF) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -351,7 +333,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -363,7 +345,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -413,8 +395,8 @@ Referential Footnotes Workaround # Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
default_formatting
default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_3 <- as_listing( @@ -301,7 +283,7 @@ Default Formatting in as_listing #> 10.32 2.00 MODERATE #> <No data> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE
as_listing #> 10.32 2.00 MODERATE #> <No data> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE
Along with the format strings listed by -formatters::list_valid_format_labels, we can also specify a +formatters::list_valid_format_labels, we can also specify a format function to allow for more customized formats in our listing. In the following example, we will define and apply a custom format function to format date (POSIXt class) columns in @@ -313,9 +295,9 @@
formatters::list_valid_format_labels
POSIXt
as_listing } default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) lsting_4 <- as_listing( @@ -400,13 +382,13 @@ Column-Wise Formatting in as the two remaining numeric columns. default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) col_fmt <- list( - BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_5 <- as_listing( diff --git a/main/articles/index.html b/main/articles/index.html index 1fcc2cb3..feaf3121 100644 --- a/main/articles/index.html +++ b/main/articles/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/articles/pagination.html b/main/articles/pagination.html index acf54900..b3fb3c66 100644 --- a/main/articles/pagination.html +++ b/main/articles/pagination.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/pagination.Rmd pagination.Rmd @@ -740,7 +722,7 @@ cat function to make the output more easily readable in the console: -cat(export_as_txt(lsting)) +cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function. @@ -1006,7 +988,7 @@ Pagination by Parameter for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, ": ", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] - subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) + subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } diff --git a/main/articles/ref_footnotes.html b/main/articles/ref_footnotes.html index 093212c6..55066038 100644 --- a/main/articles/ref_footnotes.html +++ b/main/articles/ref_footnotes.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/ref_footnotes.Rmd ref_footnotes.Rmd @@ -224,7 +206,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -236,7 +218,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -290,7 +272,7 @@ Referential Footnotes Workaroundset.seed(1) # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -303,7 +285,7 @@ Referential Footnotes Workaround dplyr::select(-ASTDTF) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -351,7 +333,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -363,7 +345,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -413,8 +395,8 @@ Referential Footnotes Workaround # Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
as the two remaining numeric columns. default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) col_fmt <- list( - BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_5 <- as_listing( diff --git a/main/articles/index.html b/main/articles/index.html index 1fcc2cb3..feaf3121 100644 --- a/main/articles/index.html +++ b/main/articles/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/articles/pagination.html b/main/articles/pagination.html index acf54900..b3fb3c66 100644 --- a/main/articles/pagination.html +++ b/main/articles/pagination.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/pagination.Rmd pagination.Rmd @@ -740,7 +722,7 @@ cat function to make the output more easily readable in the console: -cat(export_as_txt(lsting)) +cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function. @@ -1006,7 +988,7 @@ Pagination by Parameter for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, ": ", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] - subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) + subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } diff --git a/main/articles/ref_footnotes.html b/main/articles/ref_footnotes.html index 093212c6..55066038 100644 --- a/main/articles/ref_footnotes.html +++ b/main/articles/ref_footnotes.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/ref_footnotes.Rmd ref_footnotes.Rmd @@ -224,7 +206,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -236,7 +218,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -290,7 +272,7 @@ Referential Footnotes Workaroundset.seed(1) # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -303,7 +285,7 @@ Referential Footnotes Workaround dplyr::select(-ASTDTF) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -351,7 +333,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -363,7 +345,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -413,8 +395,8 @@ Referential Footnotes Workaround # Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
default_fmt <- list( - all = fmt_config(na_str = "<No data>", align = "left"), - numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), - POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") + all = fmt_config(na_str = "<No data>", align = "left"), + numeric = fmt_config(format = "xx", na_str = "<No data>", align = "right"), + POSIXt = fmt_config(format = date_fmt("%B %d, %Y @ %I:%M %p %Z"), na_str = "<No data>") ) col_fmt <- list( - BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") + BMRKR1 = fmt_config(format = "xx.xx", na_str = "<No data>", align = "decimal") ) lsting_5 <- as_listing( diff --git a/main/articles/index.html b/main/articles/index.html index 1fcc2cb3..feaf3121 100644 --- a/main/articles/index.html +++ b/main/articles/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/articles/pagination.html b/main/articles/pagination.html index acf54900..b3fb3c66 100644 --- a/main/articles/pagination.html +++ b/main/articles/pagination.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/pagination.Rmd pagination.Rmd @@ -740,7 +722,7 @@ cat function to make the output more easily readable in the console: -cat(export_as_txt(lsting)) +cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function. @@ -1006,7 +988,7 @@ Pagination by Parameter for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, ": ", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] - subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) + subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } diff --git a/main/articles/ref_footnotes.html b/main/articles/ref_footnotes.html index 093212c6..55066038 100644 --- a/main/articles/ref_footnotes.html +++ b/main/articles/ref_footnotes.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -113,7 +95,7 @@ Emily de la Rua - 2024-02-08 + 2024-02-28 Source: vignettes/ref_footnotes.Rmd ref_footnotes.Rmd @@ -224,7 +206,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -236,7 +218,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -290,7 +272,7 @@ Referential Footnotes Workaroundset.seed(1) # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -303,7 +285,7 @@ Referential Footnotes Workaround dplyr::select(-ASTDTF) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -351,7 +333,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -363,7 +345,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -413,8 +395,8 @@ Referential Footnotes Workaround # Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
vignettes/pagination.Rmd
pagination.Rmd
cat
-cat(export_as_txt(lsting)) +cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function.
cat(export_as_txt(lsting)) +cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function.
cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— @@ -985,7 +967,7 @@ function will write output to a supplied .rtf file containing the listing output. If no file is supplied, the RTF formatted output will be printed to the console. See -?export_as_rtf for more details on this function. +?export_as_rtf for more details on this function.
.rtf
RTF
?export_as_rtf
vignettes/ref_footnotes.Rmd
ref_footnotes.Rmd
# Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -236,7 +218,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -290,7 +272,7 @@ Referential Footnotes Workaroundset.seed(1) # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -303,7 +285,7 @@ Referential Footnotes Workaround dplyr::select(-ASTDTF) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -351,7 +333,7 @@ Referential Footnotes Workaround # Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -363,7 +345,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -413,8 +395,8 @@ Referential Footnotes Workaround # Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
# Save variable labels for your data to add back in after mutating dataset -df_lbls <- var_labels(adae) +df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added @@ -363,7 +345,7 @@ Referential Footnotes Workaround) # Add data variable labels back in -var_labels(adae) <- df_lbls +var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( @@ -413,8 +395,8 @@ Referential Footnotes Workaround # Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
# Modify data variable label -adae <- adae %>% var_relabel( - USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") +adae <- adae %>% var_relabel( + USUBJID = paste0(var_labels(adae)[["USUBJID"]], "****") ) # Generate listing @@ -469,7 +451,7 @@ Referential Footnotes Workaround) #> sorting incoming data by key columns -main_footer(lsting) <- c(main_footer(lsting), ref_fns) +main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity diff --git a/main/articles/rlistings.html b/main/articles/rlistings.html index 657b99b2..d2f9c93c 100644 --- a/main/articles/rlistings.html +++ b/main/articles/rlistings.html @@ -34,7 +34,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -60,24 +60,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/authors.html b/main/authors.html index bf3238ba..12ce4259 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -118,14 +100,14 @@ Citation Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/. @Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, } diff --git a/main/index.html b/main/index.html index 02cf4250..bf62b2a3 100644 --- a/main/index.html +++ b/main/index.html @@ -40,7 +40,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -66,24 +66,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index 5a3acd46..c7d6f177 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -81,7 +63,7 @@ -rlistings 0.2.7.9004 +rlistings 0.2.7.9006 Added relevant tests for pagination when key columns need to be repeated in each page and when they are all empty. Added relevant tests for new line characters’ handling in footnotes and titles. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index d2d78a22..d684769d 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: pagination: pagination.html ref_footnotes: ref_footnotes.html rlistings: rlistings.html -last_built: 2024-02-08T17:59Z +last_built: 2024-02-28T15:42Z urls: reference: https://insightsengineering.github.io/rlistings/reference article: https://insightsengineering.github.io/rlistings/articles diff --git a/main/reference/defunct.html b/main/reference/defunct.html index 2e5b62be..04b63e07 100644 --- a/main/reference/defunct.html +++ b/main/reference/defunct.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/index.html b/main/reference/index.html index bd1e3e4d..10bb9e0d 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/listing_methods.html b/main/reference/listing_methods.html index 8f83290c..64fb8d08 100644 --- a/main/reference/listing_methods.html +++ b/main/reference/listing_methods.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -193,12 +175,11 @@ Value Examples - -lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there" diff --git a/main/reference/listings.html b/main/reference/listings.html index 3b71ac5d..7c99022f 100644 --- a/main/reference/listings.html +++ b/main/reference/listings.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ Usage disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, - default_formatting = list(all = fmt_config()), + default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, @@ -286,9 +268,9 @@ Examples add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> @@ -335,9 +317,9 @@ Examples disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1") ) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 @@ -374,8 +356,8 @@ Examples key_cols = c("USUBJID", "AESOC"), disp_cols = c("STUDYID", "SEX", "ASEQ", "RANDDT", "ASTDY", "AENDY"), default_formatting = list( - all = fmt_config(align = "left"), - numeric = fmt_config( + all = fmt_config(align = "left"), + numeric = fmt_config( format = "xx.xx", na_str = "<No data>", align = "right" @@ -385,9 +367,9 @@ Examples add_listing_col("BMRKR1", format = "xx.x", align = "center") #> sorting incoming data by key columns -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 <No data> 6.5 diff --git a/main/reference/make_row_df-listing_df-method.html b/main/reference/make_row_df-listing_df-method.html index 08829557..c0533ed0 100644 --- a/main/reference/make_row_df-listing_df-method.html +++ b/main/reference/make_row_df-listing_df-method.html @@ -10,7 +10,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -35,24 +35,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -88,7 +70,7 @@ Usage # S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
Becker G, Waddell A, Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. -R package version 0.2.7.9004, +R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.
@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, - note = {R package version 0.2.7.9004, + note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }
-lsting <- as_listing(mtcars) + lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there"
lsting <- as_listing(mtcars) #> sorting incoming data by key columns -main_title(lsting) <- "Hi there" +main_title(lsting) <- "Hi there" -main_title(lsting) +main_title(lsting) #> [1] "Hi there"
# S4 method for listing_df -make_row_df( +make_row_df( tt, colwidths = NULL, visible_only = TRUE, @@ -159,14 +141,14 @@ Value See also - make_row_df + make_row_df Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/matrix_form-listing_df-method.html b/main/reference/matrix_form-listing_df-method.html index 4cc814fe..90093131 100644 --- a/main/reference/matrix_form-listing_df-method.html +++ b/main/reference/matrix_form-listing_df-method.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -91,7 +73,7 @@ Usage # S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) +matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE) @@ -131,14 +113,14 @@ Note See also - formatters::matrix_form() + formatters::matrix_form() Examples lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting) diff --git a/main/reference/paginate.html b/main/reference/paginate.html index 428baace..fe3b2067 100644 --- a/main/reference/paginate.html +++ b/main/reference/paginate.html @@ -14,7 +14,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -39,24 +39,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -105,7 +87,7 @@ Usage margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, - colwidths = propose_column_widths(lsting), + colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE @@ -214,9 +196,9 @@ Examplesdat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
make_row_df
lsting <- as_listing(mtcars) #> sorting incoming data by key columns -mf <- matrix_form(lsting) +mf <- matrix_form(lsting)
# S4 method for listing_df -matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)
formatters::matrix_form()
dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c("USUBJID", "AESOC", "RACE", "AETOXGR", "BMRKR1")) -mat <- matrix_form(lsting) +mat <- matrix_form(lsting) -cat(toString(mat)) +cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 diff --git a/main/reference/reexports.html b/main/reference/reexports.html index d9bff24d..955c83cb 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -24,7 +24,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -49,24 +49,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports @@ -99,7 +81,7 @@ These objects are imported from other packages. Follow the links below to see their documentation. formatters -export_as_txt +export_as_txt @@ -108,16 +90,15 @@ Examples - -dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
These objects are imported from other packages. Follow the links below to see their documentation.
export_as_txt
-dat <- ex_adae + dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]
dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c("USUBJID", "AESOC")) %>% add_listing_col("AETOXGR") %>% add_listing_col("BMRKR1", format = "xx.x") %>% add_listing_col("AESER / AREL", fun = function(df) paste(df$AESER, df$AREL, sep = " / ")) #> sorting incoming data by key columns -main_title(lsting) <- "this is some title" -main_footer(lsting) <- "this is some footer" -cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) +main_title(lsting) <- "this is some title" +main_footer(lsting) <- "this is some footer" +cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— diff --git a/main/reference/rlistings-package.html b/main/reference/rlistings-package.html index 147f7d6a..92fdc1ed 100644 --- a/main/reference/rlistings-package.html +++ b/main/reference/rlistings-package.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/reference/vec_nlines.html b/main/reference/vec_nlines.html index e5a5ebb2..597108be 100644 --- a/main/reference/vec_nlines.html +++ b/main/reference/vec_nlines.html @@ -12,7 +12,7 @@ rlistings - 0.2.7.9004 + 0.2.7.9006 part of @@ -37,24 +37,6 @@ Changelog - - Versions main -latest-tag -release-candidate -v0.2.6-rc1 -v0.2.3-rc2 -v0.2.2-rc1 -v0.2.7 -v0.2.5 -v0.2.4 -v0.2.3 -v0.2.2 -v0.2.1 -v0.2.0 - Reports diff --git a/main/search.json b/main/search.json index 7c75db6c..62712000 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/main/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/main/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9004, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/main/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/main/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/main/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-0279004","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9004","title":"rlistings 0.2.7.9004","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/main/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}] +[{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Column Formatting","text":"vignette demonstrates content columns listing_df object can customized using format configurations rlistings R package. following topics covered: Adjusting default column formatting settings as_listing Applying custom formatting specific columns as_listing Applying custom formatting settings adding new column listing via add_listing_col learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"default-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Default Formatting in as_listing","title":"Column Formatting","text":"creating listing rlistings package, may want customize content rendered within one listing columns. section demonstrate default formatting can set within as_listing function via default_formatting parameter. default_formatting argument as_listing accepts named list format configurations apply within listing. Format configurations supplied fmt_config objects contain 3 elements control formatting: format: format label (string) format function apply rendering values (see valid options ?formatters::list_valid_format_labels()). Defaults NULL. na_str: string displayed place missing values. Defaults \"NA\". align: Alignment use rendering listing column. Defaults \"center\". options include \"left\", \"right\", \"decimal\", \"dec_right\", \"dec_left\". default_formatting argument can use format configuration columns listing (default), also allows user set different format configurations data class present listing. list supplied default_formatting must contain named element corresponding every data class present listing, include element configuration applied data classes explicitly covered. demonstrate, create basic listing customize formatting using default_formatting parameter. begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 15 records dataset. create NA values data showcase NA values can formatted, sort data key columns. Now create basic listing. Notice data table displayed , rounding formatting applied. columns centered missing values displayed \"NA\". Suppose want left align columns listing replace missing values string \"\". can done setting element list supplied default_formatting, shown following example. Now consider like display numeric columns two decimal places align columns decimal point. can done adding \"numeric\" element default_formatting list follows: Along format strings listed formatters::list_valid_format_labels, can also specify format function allow customized formats listing. following example, define apply custom format function format date (POSIXt class) columns listing. output , format configuration, originally applied columns listing, now applies two character/factor variables (USUBJID AESEV). data classes listing covered elements list provided default_formatting. format configurations supplied listing, applicable configuration take precedence format configuration.","code":"library(rlistings) adae <- ex_adae[1:15, ] set.seed(1) adae <- as.data.frame(lapply(adae, function(x) replace(x, sample(length(x), 0.1 * length(x)), NA))) adae <- adae %>% dplyr::arrange(USUBJID, AGE, TRTSDTM) lsting_1 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), ) lsting_1 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> NA 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> NA 6 NA #> NA 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 NA MODERATE #> 10.323346349886 2 MODERATE #> NA 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\") ) lsting_2 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_2 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 2021-06-10 13:26:53.956201 6.46299057842479 1 MODERATE #> 6.46299057842479 3 MODERATE #> 2021-06-10 13:26:53.956201 6.46299057842479 2 MODERATE #> AB12345-BRA-1-id-141 35 2021-02-28 23:47:16.956201 7.51607612428241 2 MILD #> 7.51607612428241 3 MILD #> 7.51607612428241 4 MODERATE #> 7.51607612428241 5 MILD #> 6 #> 7.51607612428241 1 MODERATE #> AB12345-BRA-1-id-236 32 2021-08-21 18:13:25.956201 7.66300121077566 1 SEVERE #> 7.66300121077566 2 SEVERE #> 7.66300121077566 3 SEVERE #> AB12345-BRA-1-id-265 25 2020-05-13 00:38:12.956201 10.323346349886 MODERATE #> 10.323346349886 2 MODERATE #> 47 2021-06-10 13:26:53.956201 6.46299057842479 4 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_3 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_3 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 2021-06-10 13:26:53.956201 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> 2021-06-10 13:26:53.956201 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 2021-02-28 23:47:16.956201 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 2021-08-21 18:13:25.956201 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 2020-05-13 00:38:12.956201 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 2021-06-10 13:26:53.956201 6.46 4.00 MODERATE # Custom format function - takes date format as input date_fmt <- function(fmt) { function(x, ...) do.call(format, list(x = x, fmt)) } default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) lsting_4 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt ) lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"column-wise-formatting-in-as_listing","dir":"Articles","previous_headings":"","what":"Column-Wise Formatting in as_listing","title":"Column Formatting","text":"section, demonstrate custom formatting can applied column--column basis rather columns specified data class entire listing . Take, example, lsting_4 created previous section. listing applies format configuration numeric columns. cases, may produce result want. listing, “Age” “Analysis Sequence Number” columns contain integer values, like render columns two decimal places instead apply current numeric format configuration “Continuous Level Biomarker 1” column. , make use col_formatting argument as_listing. Like default_formatting, argument takes named list format configurations (fmt_config objects) input, unlike default_formatting names list elements correspond column names. col_formatting argument can used combination default_formatting argument , number columns present listing, depending requirements. See following example demonstrates col_formatting can used BMRKR1 column. use \"xx\" format right alignment two remaining numeric columns. Now columns present listing formatted according specifications. Note format configurations supplied col_formatting individual columns take precedence format configurations default_formatting.","code":"lsting_4 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 1.00 MODERATE #> 6.46 3.00 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2.00 MODERATE #> AB12345-BRA-1-id-141 35.00 February 28, 2021 @ 11:47 PM UTC 7.52 2.00 MILD #> 7.52 3.00 MILD #> 7.52 4.00 MODERATE #> 7.52 5.00 MILD #> 6.00 #> 7.52 1.00 MODERATE #> AB12345-BRA-1-id-236 32.00 August 21, 2021 @ 06:13 PM UTC 7.66 1.00 SEVERE #> 7.66 2.00 SEVERE #> 7.66 3.00 SEVERE #> AB12345-BRA-1-id-265 25.00 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2.00 MODERATE #> 47.00 June 10, 2021 @ 01:26 PM UTC 6.46 4.00 MODERATE default_fmt <- list( all = fmt_config(na_str = \"\", align = \"left\"), numeric = fmt_config(format = \"xx\", na_str = \"\", align = \"right\"), POSIXt = fmt_config(format = date_fmt(\"%B %d, %Y @ %I:%M %p %Z\"), na_str = \"\") ) col_fmt <- list( BMRKR1 = fmt_config(format = \"xx.xx\", na_str = \"\", align = \"decimal\") ) lsting_5 <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"AGE\", \"TRTSDTM\"), disp_cols = c(\"BMRKR1\", \"ASEQ\", \"AESEV\"), default_formatting = default_fmt, col_formatting = col_fmt ) lsting_5 #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE #> 6.46 3 MODERATE #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD #> 7.52 3 MILD #> 7.52 4 MODERATE #> 7.52 5 MILD #> 6 #> 7.52 1 MODERATE #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE #> 7.66 2 SEVERE #> 7.66 3 SEVERE #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE #> 10.32 2 MODERATE #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"adding-formatted-columns-to-a-listing-via-add_listing_col","dir":"Articles","previous_headings":"","what":"Adding Formatted Columns to a Listing via add_listing_col","title":"Column Formatting","text":"cases, may want add new column formatting settings pre-existing listing. section, demonstrate can accomplished using add_listing_col. Columns added listing already created as_listing inherit format configurations previously applied, formatting new column must specified within add_listing_col function. Instead creating fmt_config object, format, na_str, align specifications supplied directly add_listing_col using parameters names. parameters specified, default values NULL, \"NA\", \"left\" used format, na_str, align, respectively. add_listing_col can used sequence many times needed add new columns listing. example, add column lsting_5 created previous section. new column calculates length analysis (days) subtracting “Analysis Start Relative Day” (ASTDY) “Analysis End Relative Day” (AENDY). can done follows:","code":"lsting_6 <- lsting_5 %>% add_listing_col( name = \"Length of\\nAnalysis\", fun = function(df) df$AENDY - df$ASTDY, format = \"xx.x\", na_str = \"NE\", align = \"center\" ) lsting_6 #> Length of #> Unique Subject Identifier Age Datetime of First Exposure to Treatment Continous Level Biomarker 1 Analysis Sequence Number Severity/Intensity Analysis #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 47 June 10, 2021 @ 01:26 PM UTC 6.46 1 MODERATE 267.0 #> 6.46 3 MODERATE 228.0 #> June 10, 2021 @ 01:26 PM UTC 6.46 2 MODERATE 255.0 #> AB12345-BRA-1-id-141 35 February 28, 2021 @ 11:47 PM UTC 7.52 2 MILD 420.0 #> 7.52 3 MILD 23.0 #> 7.52 4 MODERATE 93.0 #> 7.52 5 MILD 43.0 #> 6 NE #> 7.52 1 MODERATE 7.0 #> AB12345-BRA-1-id-236 32 August 21, 2021 @ 06:13 PM UTC 7.66 1 SEVERE 410.0 #> 7.66 2 SEVERE 517.0 #> 7.66 3 SEVERE 4.0 #> AB12345-BRA-1-id-265 25 May 13, 2020 @ 12:38 AM UTC 10.32 MODERATE 44.0 #> 10.32 2 MODERATE 162.0 #> 47 June 10, 2021 @ 01:26 PM UTC 6.46 4 MODERATE NE"},{"path":"https://insightsengineering.github.io/rlistings/articles/col_formatting.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Column Formatting","text":"vignette, learned column formatting can configured using default_formatting col_formatting arguments as_listing add_listing_col function customize listings rendered. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Pagination","text":"vignette shows pagination can applied listing_df objects using rlistings R package. Specifically, following topics covered: Basics pagination Pagination exporters Pagination parameter learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"basics-of-pagination","dir":"Articles","previous_headings":"","what":"Basics of Pagination","title":"Pagination","text":"many cases, listings rows columns can fit single page. occurs, may choose use pagination improve readability listing /fit onto standard-sized page exporting printing. pagination applied, listing annotations (titles & footers) printed returned pages. Note currently mono-spaced fonts supported pagination characters used measure text width. Vertical pagination occurs listing especially long many rows fit one page, horizontal pagination applied listing especially wide many columns print single page. horizontal pagination applied listing, key columns specified listing repeated leftmost columns page. value key column, example subject ID, present rows extend several pages, key column value printed top page. paginate_listing function paginates listing object returns list listing objects list element corresponding separate page. function used want paginate listing view within R console like process list paginated output exporting. R code , give basic example create listing rlistings pre-processed data frame paginate listing using paginate_listing. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 100 records dataset. Now create basic listing. listing output , notice two key columns expect repeated page pagination. Next, apply pagination default settings via paginate_listing function. Default pagination applies following settings, adjustable via parameter specified parentheses: Page type: \"letter\" (page_type) - options: \"a4\", \"legal\" Font family: \"Courier\" (font_family) - options: \"mono\", \"NimbusMon\", \"Japan1\", \"Japan1HeiMin\", \"Japan1GothicBBB\", \"Japan1Ryumin\", \"Korea1\", \"Korea1deb\", \"CNS1\", \"GB1\" Font size: 8 (font_size) Line height: 1 (line_height) Landscape: FALSE - portrait orientation (landscape) Margins: 0.5, 0.75 - inches top/bottom left/right margins, respectively (margins) parameters, well additional arguments listed (see ?paginate_listing options), can set fine-tune pagination output. can see output applying pagination separated listing 4 pages (list elements). page includes two key columns well however many display columns fit horizontally page. Pages 1 3 contain key columns “Analysis Toxicity Grade” column, overflowing columns pages present pages 2 4, respectively. Additionally, vertical pagination applied listing, 20 rows fit vertically pages 1 2 overflowing onto pages 3 4, respectively. can also see last subject included pages 1 2, subject ID “AB12345-BRA-12-id-59”, additional rows overflow onto pages 3 4, key column values subject repeated first line two pages.","code":"library(rlistings) adae <- ex_adae[1:100, ] lsting <- as_listing( df = adae, key_cols = c(\"USUBJID\", \"ARM\"), disp_cols = c(\"AETOXGR\", \"AEDECOD\", \"AESEV\"), main_title = \"Title\", main_footer = \"Footer\" ) head(lsting, 20) #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer paginate_listing(lsting) #> [[1]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 #> 4 #> 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[4]] #> Title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"alternative-methods-to-specify-page-size","dir":"Articles","previous_headings":"Basics of Pagination","what":"Alternative Methods to Specify Page Size","title":"Pagination","text":"addition specifying page_type, three alternative methods can used specify page size paginating listing: pg_width pg_height lpp cpp colwidths method 1 2 implemented, page_type argument ignored.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pg_width-and-pg_height","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"1. pg_width and pg_height","title":"Pagination","text":"alternative specifying page type, user can instead supply page width (pg_width) page height (pg_height) values inches define page size.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"lpp-and-cpp","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"2. lpp and cpp","title":"Pagination","text":"control users can instead set lpp (lines per page) cpp (characters per page) parameters set exact number rows vertical dimension included per page, characters per line included per page horizontal dimension, respectively. NULL supplied either parameters, pagination associated dimension applied. Considerations using lpp cpp: lpp value must include lines titles footers, included every page. value supplied allow valid pagination, error occur. One example error occur titles & footer information (including separator lines) spans 10 rows specify lpp 5. See following example uses lpp cpp instead page_type specify page size: set lpp 50 shortens vertical length page maximum 50 lines (8 rows header/footer information + 42 rows data). setting cpp NULL disable pagination horizontal direction columns fit horizontally across page.","code":"paginate_listing(lsting, lpp = 50, cpp = NULL) #> [[1]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"colwidths","dir":"Articles","previous_headings":"Basics of Pagination > Alternative Methods to Specify Page Size","what":"3. colwidths","title":"Pagination","text":"applying horizontal pagination, colwidths parameter can set via numeric vector widths use column. length vector must equal number columns listing, element corresponding column listing index. Considerations using colwidths: supplied column width smaller widest text column (label), width column defaults number characters widest text column. argument affects horizontal pagination (page width) used combination argument applies vertical pagination (page height).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_txt","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_txt","title":"Pagination","text":"paginate_listing, export_as_txt can also used paginate listing objects. Instead returning list listings page, export_as_txt function , file specified, return concatenated string value page content resulting pagination. file parameter specified, export_as_txt function instead write result supplied .txt file. export_as_txt function contains arguments available paginate_listing, work way, plus additional arguments useful listing pagination: file: path write text file , paginated listing rendered ASCII text. hsep: Character repeat create separator line header/footer body. page_break: Page break symbol. Defaults \"\\\\s\\\\n\". Note paginate argument set FALSE, pagination occur. See example using export_as_txt . use cat function make output easily readable console: Notice page break symbol (\\s\\n) repeated page breaks occur (.e. prior title new page).","code":"cat(export_as_txt(lsting)) #> Title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo 3 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.4.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"export_as_rtf","dir":"Articles","previous_headings":"Pagination with Exporters","what":"export_as_rtf","title":"Pagination","text":"export_as_rtf function can used similarly export_as_txt paginate export listings except function write output supplied .rtf file containing listing output. file supplied, RTF formatted output printed console. See ?export_as_rtf details function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"pagination-by-parameter","dir":"Articles","previous_headings":"","what":"Pagination by Parameter","title":"Pagination","text":"addition paginating page size described previous sections vignette, user may also want paginate listing page corresponds different value given parameter. example, may require treatment arm printed separate page. can currently done rlistings using following workaround: loading function , can apply pre-existing listing follows: paginate_listing, creates list listings list element corresponds new page, page corresponding one value given parameter. Note page_prefix argument can specified modify text printed page describe current parameter value.","code":"split_listing_by_param <- function(lsting, param, page_prefix = param) { checkmate::assert_class(lsting, \"listing_df\") checkmate::assert_choice(param, names(lsting)) lsting_by_param <- list() for (lvl in unique(lsting[[param]])) { param_desc <- paste0(page_prefix, \": \", lvl) lsting_by_param[[lvl]] <- lsting[lsting[[param]] == lvl, ] subtitles(lsting_by_param[[lvl]]) <- c(subtitles(lsting), param_desc) } unname(lsting_by_param) } lsting_by_arm <- lsting %>% split_listing_by_param(\"ARM\", page_prefix = \"Treatment Arm\") lsting_by_arm #> [[1]] #> Title #> Treatment Arm: A: Drug X #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X 2 dcd C.2.1.2.1 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X 3 dcd D.1.1.4.2 MODERATE #> 4 dcd C.1.1.1.3 SEVERE #> 2 dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X 3 dcd B.2.1.2.1 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[2]] #> Title #> Treatment Arm: C: Combination #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination 2 dcd C.2.1.2.1 MODERATE #> 3 dcd D.1.1.4.2 MODERATE #> 5 dcd D.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination 1 dcd A.1.1.1.1 MILD #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 1 dcd D.2.1.5.3 MILD #> 1 dcd A.1.1.1.1 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination 3 dcd D.1.1.4.2 MODERATE #> 1 dcd B.2.2.3.1 MILD #> 5 dcd D.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 2 dcd A.1.1.1.2 MODERATE #> 2 dcd A.1.1.1.2 MODERATE #> 1 dcd A.1.1.1.1 MILD #> 2 dcd C.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 1 dcd B.2.2.3.1 MILD #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> #> [[3]] #> Title #> Treatment Arm: B: Placebo #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> 5 dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo 2 dcd C.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 5 dcd B.1.1.1.1 SEVERE #> 4 dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo 5 dcd D.1.1.1.1 SEVERE #> 1 dcd B.2.2.3.1 MILD #> 3 dcd D.1.1.4.2 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 3 dcd B.2.1.2.1 MODERATE #> 2 dcd C.2.1.2.1 MODERATE #> 3 dcd B.2.1.2.1 MODERATE #> 1 dcd D.2.1.5.3 MILD #> 4 dcd C.1.1.1.3 SEVERE #> 3 dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-regular-pagination","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with Regular Pagination","title":"Pagination","text":"apply regular pagination listing, can apply following function list listings parameter. arguments paginate_listing supplied function applied list element.","code":"paginate_lsting_by_param <- function(lsting, ...) { unlist(lapply(lsting, paginate_listing, ...), recursive = FALSE) }"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"combining-pagination-by-parameter-with-export_as_txt","dir":"Articles","previous_headings":"Pagination by Parameter","what":"Combining Pagination by Parameter with export_as_txt","title":"Pagination","text":"Similarly, pagination via export_as_txt paginating parameter, can apply following function list listings parameter. arguments export_as_txt supplied function applied list element list concatenated correct text format. example: , use cat function make text output easily readable console.","code":"export_to_txt_lsting_by_param <- function(lsting, file = NULL, page_break = \"\\\\s\\\\n\", ...) { lst <- unlist(lapply(lsting, export_as_txt, page_break = page_break, ...), recursive = FALSE) res <- paste(lst, collapse = page_break) if (is.null(file)) res else cat(res, file = file) } cat(export_to_txt_lsting_by_param(lsting_by_arm)) #> Title #> Treatment Arm: A: Drug X #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X 3 #> 3 #> 2 #> 2 #> AB12345-BRA-1-id-42 A: Drug X 2 #> 5 #> 2 #> 2 #> 1 #> 2 #> 5 #> 2 #> 4 #> 5 #> AB12345-BRA-1-id-93 A: Drug X 3 #> 1 #> 1 #> 1 #> 4 #> 5 #> 5 #> 1 #> 1 #> AB12345-BRA-11-id-345 A: Drug X 3 #> 3 #> 1 #> 5 #> AB12345-BRA-11-id-397 A: Drug X 3 #> 3 #> 3 #> 5 #> 1 #> 5 #> AB12345-BRA-11-id-50 A: Drug X 3 #> 4 #> 2 #> AB12345-BRA-13-id-177 A: Drug X 3 #> 1 #> 5 #> 4 #> 3 #> 5 #> AB12345-BRA-14-id-23 A: Drug X 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: A: Drug X #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-42 A: Drug X dcd C.2.1.2.1 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd B.1.1.1.1 SEVERE #> dcd A.1.1.1.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-93 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.2.2.3.1 MILD #> AB12345-BRA-11-id-345 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-397 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-50 A: Drug X dcd D.1.1.4.2 MODERATE #> dcd C.1.1.1.3 SEVERE #> dcd A.1.1.1.2 MODERATE #> AB12345-BRA-13-id-177 A: Drug X dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-14-id-23 A: Drug X dcd B.2.1.2.1 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination 3 #> 1 #> 1 #> 2 #> 1 #> 5 #> AB12345-BRA-1-id-265 C: Combination 2 #> 3 #> 5 #> 4 #> AB12345-BRA-11-id-237 C: Combination 1 #> 4 #> 3 #> AB12345-BRA-11-id-321 C: Combination 1 #> 1 #> 2 #> 2 #> 1 #> 1 #> 1 #> 3 #> 5 #> AB12345-BRA-11-id-9 C: Combination 3 #> 1 #> 5 #> 5 #> 1 #> 2 #> 2 #> 3 #> AB12345-BRA-14-id-120 C: Combination 2 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> 2 #> 2 #> 1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: C: Combination #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-141 C: Combination dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 C: Combination dcd C.2.1.2.1 MODERATE #> dcd D.1.1.4.2 MODERATE #> dcd D.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-11-id-237 C: Combination dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-11-id-321 C: Combination dcd A.1.1.1.1 MILD #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.1 MILD #> dcd B.2.1.2.1 MODERATE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-11-id-9 C: Combination dcd D.1.1.4.2 MODERATE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> AB12345-BRA-14-id-120 C: Combination dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.2 MODERATE #> dcd A.1.1.1.1 MILD #> dcd C.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.2.3.1 MILD #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Analysis Toxicity Grade #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo 5 #> 5 #> 5 #> AB12345-BRA-1-id-65 B: Placebo 2 #> 1 #> 5 #> 4 #> AB12345-BRA-12-id-59 B: Placebo 5 #> 1 #> 3 #> 1 #> 3 #> 2 #> 3 #> 1 #> 4 #> 3 #> ———————————————————————————————————————————————————————————————————————————————— #> #> Footer #> \\s\\nTitle #> Treatment Arm: B: Placebo #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Description of Planned Arm Dictionary-Derived Term Severity/Intensity #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-236 B: Placebo dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-65 B: Placebo dcd C.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.1.1.1.1 SEVERE #> dcd C.1.1.1.3 SEVERE #> AB12345-BRA-12-id-59 B: Placebo dcd D.1.1.1.1 SEVERE #> dcd B.2.2.3.1 MILD #> dcd D.1.1.4.2 MODERATE #> dcd D.2.1.5.3 MILD #> dcd B.2.1.2.1 MODERATE #> dcd C.2.1.2.1 MODERATE #> dcd B.2.1.2.1 MODERATE #> dcd D.2.1.5.3 MILD #> dcd C.1.1.1.3 SEVERE #> dcd D.1.1.4.2 MODERATE #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Footer"},{"path":"https://insightsengineering.github.io/rlistings/articles/pagination.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Pagination","text":"vignette, learned use rlistings package paginate listings. seen examples demonstrating custom pagination can configured, well examples pagination applied using exporter functions. also seen learned pagination can applied pages separated value given parameter. information listings pagination please see ?paginate_listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Referential Footnotes","text":"currently formal method adding referential footnotes listing object. vignette demonstrates referential footnotes can added listing_df object via workaround applied pre-processing. learn listings constructed using rlistings package, see Getting Started vignette.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"referential-footnotes-workaround","dir":"Articles","previous_headings":"","what":"Referential Footnotes Workaround","title":"Referential Footnotes","text":"creating listing rlistings package, may want add referential footnotes, similar referential footnotes can added rtable objects. Since formal method rlistings applying referential footnotes listing_df object, demonstrate workaround can applied add set pseudo-referential footnotes listing. demonstrate, create basic listing . begin loading rlistings package. example, use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. purpose example, subset data use first 30 records dataset. Now create basic listing. example, add 4 referential footnotes. ARM column, records ARM = \": Drug X\" ASEQ equal 1 2. ASTDY column, imputed dates, imputed dates indicated ASTDTF variable. AESEV column, records AETOXGR equal 5. USUBJID column header. Footnote text can supplied either vector, element new footnote, single string footnotes separated new line (\\n) character. example, see following list referential footnotes: start first footnote ARM column records arm “: Drug X” also analysis sequence number 1 2. Referential footnotes can added variable converting variable factor, editing variable values, adding corresponding footnote listing. add first referential footnote ARM column. ensure levels correctly ordered, sure specify new level order mutating variable. Additional referential footnotes can added data repeating steps. example, can add second referential footnote ASTDY column imputed analysis start days. use dummy variable ASTDTF indicate imputed analysis start dates. adding referential footnotes numeric variables, variables must converted factors. Next can add third referential footnote AESEV column records analysis toxicity grade 5. Referential footnotes can also added column header labels. Suppose want add fourth referential footnote USUBJID column label. can editing USUBJID variable label adding footnote text follows: Finally, add referential footnote text listing follows. Now listing complete, four referential footnotes denoted within listing described footnotes section .","code":"library(rlistings) adae <- ex_adae[1:30, ] lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE ref_fns <- \"* ASEQ 1 or 2\\n** Analysis start date is imputed\\n*** Records with ATOXGR = 5\\n**** ID column\" # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( ARM = factor( ifelse(ARM == \"A: Drug X\" & ASEQ %in% 1:2, paste0(ARM, \"*\"), as.character(ARM)), levels = c(sapply(levels(adae$ARM), paste0, c(\"\", \"*\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95 2.26753940777848 MODERATE #> 4 160 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303 7.51607612428241 MILD #> 3 493 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE set.seed(1) # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate(ASTDTF = sample(c(\"Y\", NA), nrow(.), replace = TRUE, prob = c(0.25, 0.75))) %>% dplyr::mutate(ASTDY = factor( ifelse(!is.na(ASTDTF), paste0(as.character(ASTDY), \"**\"), as.character(ASTDY)), levels = c(sapply(sort(unique(adae$ASTDY)), paste0, c(\"\", \"**\"))) )) %>% dplyr::select(-ASTDTF) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE #> 2 181 7.66300121077566 SEVERE #> 3 702 7.66300121077566 SEVERE #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE #> 4 403 10.323346349886 SEVERE # Save variable labels for your data to add back in after mutating dataset df_lbls <- var_labels(adae) # Mutate variable where referential footnotes are to be added according to your conditions # Specify order of levels with new referential footnotes added adae <- adae %>% dplyr::mutate( AESEV = factor( ifelse(AETOXGR == 5, paste0(AESEV, \"***\"), as.character(AESEV)), levels = c(sapply(levels(adae$AESEV), paste0, c(\"\", \"***\"))) ) ) # Add data variable labels back in var_labels(adae) <- df_lbls # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASEQ\", \"ASTDY\"), disp_cols = c(\"BMRKR1\", \"AESEV\"), ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier Analysis Sequence Number Analysis Start Relative Day Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 3 497 6.46299057842479 MODERATE #> 4 608** 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 3 95** 2.26753940777848 MODERATE #> 4 160** 2.26753940777848 MODERATE #> 5 292 2.26753940777848 MILD #> 6 460 2.26753940777848 MODERATE #> 7 470 2.26753940777848 SEVERE*** #> 8 476 2.26753940777848 MODERATE #> 9 497 2.26753940777848 SEVERE #> 10 642 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 1 251 6.46299057842479 MODERATE #> 2 304 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 1 39** 2.26753940777848 MODERATE #> 2 65 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 1 22 7.66300121077566 SEVERE*** #> 2 181 7.66300121077566 SEVERE*** #> 3 702 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 1 145 7.34091885189189 MODERATE #> 2 191** 7.34091885189189 MILD #> 3 233 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 1 259 7.51607612428241 MODERATE #> 2 303** 7.51607612428241 MILD #> 3 493** 7.51607612428241 MILD #> 4 600 7.51607612428241 MODERATE #> 5 635 7.51607612428241 MILD #> 6 730 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 1 48 10.323346349886 MODERATE #> 2 200** 10.323346349886 MODERATE #> 3 392 10.323346349886 SEVERE*** #> 4 403 10.323346349886 SEVERE # Modify data variable label adae <- adae %>% var_relabel( USUBJID = paste0(var_labels(adae)[[\"USUBJID\"]], \"****\") ) # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE # Generate listing lsting <- as_listing( df = adae, key_cols = c(\"ARM\", \"USUBJID\", \"ASTDY\", \"ASEQ\"), disp_cols = c(\"BMRKR1\", \"AESEV\") ) #> sorting incoming data by key columns main_footer(lsting) <- c(main_footer(lsting), ref_fns) lsting #> Description of Planned Arm Unique Subject Identifier**** Analysis Start Relative Day Analysis Sequence Number Continous Level Biomarker 1 Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> A: Drug X AB12345-BRA-1-id-134 497 3 6.46299057842479 MODERATE #> 608** 4 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 95** 3 2.26753940777848 MODERATE #> 160** 4 2.26753940777848 MODERATE #> 292 5 2.26753940777848 MILD #> 460 6 2.26753940777848 MODERATE #> 470 7 2.26753940777848 SEVERE*** #> 476 8 2.26753940777848 MODERATE #> 497 9 2.26753940777848 SEVERE #> 642 10 2.26753940777848 SEVERE*** #> A: Drug X* AB12345-BRA-1-id-134 251 1 6.46299057842479 MODERATE #> 304 2 6.46299057842479 MODERATE #> AB12345-BRA-1-id-42 39** 1 2.26753940777848 MODERATE #> 65 2 2.26753940777848 SEVERE*** #> B: Placebo AB12345-BRA-1-id-236 22 1 7.66300121077566 SEVERE*** #> 181 2 7.66300121077566 SEVERE*** #> 702 3 7.66300121077566 SEVERE*** #> AB12345-BRA-1-id-65 145 1 7.34091885189189 MODERATE #> 191** 2 7.34091885189189 MILD #> 233 3 7.34091885189189 SEVERE*** #> C: Combination AB12345-BRA-1-id-141 259 1 7.51607612428241 MODERATE #> 303** 2 7.51607612428241 MILD #> 493** 3 7.51607612428241 MILD #> 600 4 7.51607612428241 MODERATE #> 635 5 7.51607612428241 MILD #> 730 6 7.51607612428241 SEVERE*** #> AB12345-BRA-1-id-265 48 1 10.323346349886 MODERATE #> 200** 2 10.323346349886 MODERATE #> 392 3 10.323346349886 SEVERE*** #> 403 4 10.323346349886 SEVERE #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> * ASEQ 1 or 2 #> ** Analysis start date is imputed #> *** Records with ATOXGR = 5 #> **** ID column"},{"path":"https://insightsengineering.github.io/rlistings/articles/ref_footnotes.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Referential Footnotes","text":"vignette, learned pre-processing workaround can applied add referential footnotes listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with rlistings","text":"vignette shows general purpose basic functionality rlistings R package. rlistings R package contains value formatting ASCII rendering infrastructure tables listings useful clinical trials statistical analysis. core functionality built top formatters package. key features currently available customize listings created using rlistings package include: Key columns Titles footnotes information listing column formatting see Column Formatting vignette. learn listing pagination see Pagination vignette. index available rlistings functions can found rlistings website functions reference. rlistings package intended use creating simple one-dimensional listings. construction complex tables see rtables package.","code":""},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"building-a-listing","dir":"Articles","previous_headings":"","what":"Building a Listing","title":"Getting Started with rlistings","text":"basic framework provided package, data.frame object can easily converted listing using as_listing function several optional customizations available. listing, core, set observation-level data rendered particular formatting without sort aggregation analysis. practice, translates classed data.frame (tbl_df) object specialized print method. means , unlike tables created rlistings’ sibling package rtables, listing object fundamentally incoming data.frame annotations attached . R code give basic example create rlistings listing pre-processed data frame. first load rlistings package. purpose example use dummy ADAE dataset provided within formatters package data frame, consists 48 columns adverse event patient data, one rows per patient. Now create listing. df parameter sets data.frame object. disp_cols argument takes vector names columns taken data frame included listing. Column headers set label attribute given variable. label associated given variable variable name taken header instead. example choose 8 arbitrary columns display - 5 specific patient 3 relating adverse event. Since dataset consists 1934 rows total, use head function print first 15 rows listing. listing output can see several rows associated patient, resulting many instances repeated values several columns. can cleaned setting key columns key_cols argument. can also declare set (non-key) display columns compliment, via non_disp_col argument. specifies argument accepts names columns non displayed. non-key columns displayed.","code":"library(rlistings) #> Loading required package: formatters #> Loading required package: tibble adae <- ex_adae lsting <- as_listing( df = adae, disp_cols = c(\"USUBJID\", \"AETOXGR\", \"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-134 3 A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> AB12345-BRA-1-id-141 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> AB12345-BRA-1-id-265 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE lsting <- as_listing( df = adae, non_disp_cols = tail(names(adae), 8) ) head(lsting, 15) #> Study Identifier Unique Subject Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Primary System Organ Class #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-134 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.46299057842479 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 cl B #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 cl D #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 cl A #> AB12345-BRA-1-id-141 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.51607612428241 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 cl D #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-236 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.66300121077566 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 cl B #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 cl C #> AB12345-BRA-1-id-265 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.323346349886 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 cl D"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"key-columns","dir":"Articles","previous_headings":"","what":"Key Columns","title":"Getting Started with rlistings","text":"Key columns act contextual identifiers observations. core behavioral feature sequentially repeated values displayed add information. practice, means value key column printed per unique combination values higher-priority (.e., left ) key columns (per page). Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. key_cols argument takes vector column names identifying key columns listing. listing always sorted key columns (order defining sort precedence). specify trial arm patient ID key columns improve readability.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\") ) #> sorting incoming data by key columns head(lsting, 15) #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"titles-and-footers","dir":"Articles","previous_headings":"","what":"Titles and Footers","title":"Getting Started with rlistings","text":"Additionally, rlistings listing can annotated two types header information (main title subtitles) two types footer information (main footers provenance footers). single title can set using main_title argument, one subtitles, main footers, provenance footers can set subtitles, main_footer prov_footer arguments respectively. demonstrated following updated listing.","code":"lsting <- as_listing( df = adae, disp_cols = c(\"ARM\", \"AGE\", \"SEX\", \"RACE\", \"AEDECOD\", \"AESEV\"), key_cols = c(\"USUBJID\", \"AETOXGR\"), main_title = \"Main Title\", subtitles = c(\"Subtitle A\", \"Subtitle B\"), main_footer = c(\"Main Footer A\", \"Main Footer B\", \"Main Footer C\"), prov_footer = c(\"Provenance Footer A\", \"Provenance Footer B\") ) #> sorting incoming data by key columns head(lsting, 15) #> Main Title #> Subtitle A #> Subtitle B #> #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Analysis Toxicity Grade Description of Planned Arm Age Sex Race Dictionary-Derived Term Severity/Intensity #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 2 A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> A: Drug X 47 M WHITE dcd A.1.1.1.2 MODERATE #> 3 A: Drug X 47 M WHITE dcd B.2.1.2.1 MODERATE #> A: Drug X 47 M WHITE dcd D.1.1.4.2 MODERATE #> AB12345-BRA-1-id-141 1 C: Combination 35 F WHITE dcd D.2.1.5.3 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> C: Combination 35 F WHITE dcd A.1.1.1.1 MILD #> 2 C: Combination 35 F WHITE dcd A.1.1.1.2 MODERATE #> 3 C: Combination 35 F WHITE dcd B.2.1.2.1 MODERATE #> 5 C: Combination 35 F WHITE dcd D.1.1.1.1 SEVERE #> AB12345-BRA-1-id-236 5 B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> B: Placebo 32 M BLACK OR AFRICAN AMERICAN dcd B.1.1.1.1 SEVERE #> AB12345-BRA-1-id-265 2 C: Combination 25 M WHITE dcd C.2.1.2.1 MODERATE #> 3 C: Combination 25 M WHITE dcd D.1.1.4.2 MODERATE #> ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main Footer A #> Main Footer B #> Main Footer C #> #> Provenance Footer A #> Provenance Footer B"},{"path":"https://insightsengineering.github.io/rlistings/articles/rlistings.html","id":"summary","dir":"Articles","previous_headings":"","what":"Summary","title":"Getting Started with rlistings","text":"vignette learned implement basic listing framework provided rlistings package build simple listing. also seen examples demonstrating optional parameters as_listing function can set customize annotate listings. information please explore rlistings website.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Gabriel Becker. Author. original creator package Adrian Waddell. Author. Joe Zhu. Author, maintainer. Davide Garolini. Contributor. Emily de la Rua. Contributor. Abinaya Yogasekaram. Contributor. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/rlistings/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Becker G, Waddell , Zhu J (2024). rlistings: Clinical Trial Style Data Readout Listings. R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/, https://insightsengineering.github.io/rlistings/.","code":"@Manual{, title = {rlistings: Clinical Trial Style Data Readout Listings}, author = {Gabriel Becker and Adrian Waddell and Joe Zhu}, year = {2024}, note = {R package version 0.2.7.9006, https://github.com/insightsengineering/rlistings/}, url = {https://insightsengineering.github.io/rlistings/}, }"},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"listings-with-r","dir":"","previous_headings":"","what":"Listings with R","title":"Clinical Trial Style Data Readout Listings","text":"rlistings R package package designed create display listings R. focus package provide functionality value formatting ASCII rendering infrastructure tables listings. Many functions contained rlistings depend formatters package, provides framework ASCII rendering available CRAN. rlistings development driven need create regulatory ready listings health authority review. key requirements undertaking listed : flexible formatting (pagesize, column widths, alignment, labels, etc.) multiple output formats (csv, , txt) repeated key columns flexible pagination horizontal vertical directions titles footnotes rlistings currently covers requirements, remains active development.","code":""},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Clinical Trial Style Data Readout Listings","text":"rlistings available CRAN can install latest released version : can install latest development version directly GitHub : Note might need set GITHUB_PAT environment variable order able install GitHub. Packaged releases (CRAN official CRAN releases) can found releases list.","code":"install.packages(\"rlistings\") remotes::install_github(\"insightsengineering/formatters\") remotes::install_github(\"insightsengineering/rlistings\")"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Clinical Trial Style Data Readout Listings","text":"following example shows simple listing printed output.","code":"library(rlistings) #> Warning: package 'rlistings' was built under R version 4.2.2 #> Loading required package: formatters #> Warning: package 'formatters' was built under R version 4.2.2 #> Loading required package: tibble # Reducing the data mtcars_ex <- mtcars %>% dplyr::mutate(\"car\" = rownames(mtcars)) as_listing(mtcars_ex, key_cols = c(\"gear\", \"carb\"), cols = c(\"gear\", \"carb\", \"qsec\", \"car\") ) %>% head() #> sorting incoming data by key columns #> gear carb qsec car #> ——————————————————————————————————————— #> 3 1 19.44 Hornet 4 Drive #> 20.22 Valiant #> 20.01 Toyota Corona #> 2 17.02 Hornet Sportabout #> 16.87 Dodge Challenger #> 17.3 AMC Javelin"},{"path":"https://insightsengineering.github.io/rlistings/index.html","id":"acknowledgment","dir":"","previous_headings":"","what":"Acknowledgment","title":"Clinical Trial Style Data Readout Listings","text":"package result joint effort many developers stakeholders. like thank everyone contributed far!","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":null,"dir":"Reference","previous_headings":"","what":"Defunct functions — pag_listing_indices","title":"Defunct functions — pag_listing_indices","text":"functions defunct symbols removed entirely future release.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Defunct functions — pag_listing_indices","text":"","code":"pag_listing_indices( lsting, lpp = 15, colwidths = NULL, max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/defunct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Defunct functions — pag_listing_indices","text":"lsting listing_df. listing paginate. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. colwidths numeric vector. Column widths (characters) use vertical pagination. max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":null,"dir":"Reference","previous_headings":"","what":"Methods for listing_df objects — listing_methods","title":"Methods for listing_df objects — listing_methods","text":"See core documentation formatters descriptions functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Methods for listing_df objects — listing_methods","text":"","code":"# S3 method for listing_df print(x, widths = NULL, tf_wrap = FALSE, max_width = NULL, ...) # S4 method for listing_df toString(x, ...) # S4 method for listing_df [(x, i, j, drop = FALSE) # S4 method for listing_df main_title(obj) # S4 method for listing_df subtitles(obj) # S4 method for listing_df main_footer(obj) # S4 method for listing_df prov_footer(obj) # S4 method for listing_df main_title(obj) <- value # S4 method for listing_df subtitles(obj) <- value # S4 method for listing_df main_footer(obj) <- value # S4 method for listing_df prov_footer(obj) <- value # S4 method for listing_df num_rep_cols(obj)"},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Methods for listing_df objects — listing_methods","text":"x listing_df. listing. widths numeric ( NULL). (proposed) widths columns x. expected length numeric vector can retrieved ncol() + 1 column row names must also considered. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. ... dots. See toString method formatters parameters. . Passed base [ methods. j . Passed base [ methods. drop matrices arrays. TRUE result coerced lowest possible dimension (see examples). works extracting elements, replacement. See drop details. obj object. value typically array-like R object similar class x.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Methods for listing_df objects — listing_methods","text":"getter methods, value aspect obj; setter methods, obj relevant element listing updated.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listing_methods.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Methods for listing_df objects — listing_methods","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns main_title(lsting) <- \"Hi there\" main_title(lsting) #> [1] \"Hi there\""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Listing from a data.frame or tibble — as_listing","title":"Create a Listing from a data.frame or tibble — as_listing","text":"Creates listings using cols key_cols produce compact elegant representation data.frame tibble input.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"as_listing( df, key_cols = names(df)[1], disp_cols = NULL, non_disp_cols = NULL, unique_rows = FALSE, default_formatting = list(all = fmt_config()), col_formatting = NULL, main_title = NULL, subtitles = NULL, main_footer = NULL, prov_footer = NULL ) as_keycol(vec) is_keycol(vec) get_keycols(df) listing_dispcols(df) add_listing_dispcol(df, new) listing_dispcols(df) <- value add_listing_col( df, name, fun = NULL, format = NULL, na_str = \"NA\", align = \"left\" )"},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Listing from a data.frame or tibble — as_listing","text":"df data.frame listing_df. (non-listing) data.frame converted listing listing_df modified. key_cols character. Names columns treated key columns rendering listing. Key columns allow group repeat occurrences. disp_cols character NULL. Names non-key columns displayed listing rendered. Defaults columns df named key_cols non_disp_cols. non_disp_cols character NULL. Names non-key columns excluded display columns. non-key columns treated display columns. Invalid disp_cols non-NULL. unique_rows logical(1). unique rows included listing. Defaults FALSE. default_formatting list. named list default column format configurations apply rendering listing. name-value pair consists name corresponding data class (\"numeric\" unspecified numeric classes) value type fmt_config format configuration implemented columns class. named element \"\" included list, configuration used data classes specified. Objects type fmt_config can take 3 arguments: format, na_str, align. col_formatting list. named list custom column formatting configurations apply specific columns rendering listing. name-value pair consists name corresponding column name value type fmt_config formatting configuration implemented column. Objects type fmt_config can take 3 arguments: format, na_str, align. Defaults NULL. main_title character(1) NULL. main title listing, NULL (default). Must length 1 non-NULL. subtitles character NULL. vector subtitle(s) listing, NULL (default). main_footer character NULL. vector main footer lines listing, NULL (default). prov_footer character NULL. vector provenance strings listing, NULL (default). string element placed new line. vec . column vector listing_df annotated key column. new character. Names columns added set display columns. value character. New value. name character(1). Name existing new column displayed listing rendered. fun function NULL. function accepts df returns vector new column, added df name, NULL marking existing column listing column. format character(1) function. format label (string) formatter function. na_str character(1). String displayed place missing values. align character(1). Alignment values rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Listing from a data.frame or tibble — as_listing","text":"listing_df object, sorted key columns. df, name created (necessary) marked display rendering.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a Listing from a data.frame or tibble — as_listing","text":"core, listing_df object tbl_df object customized print method support formatting pagination machinery provided formatters package. listing_df objects two 'special' types columns: key columns display columns. Key columns act indexes, means number things practice. key columns also display columns. listing_df objects always sorted set key_columns creation time. listing_df object sorted full set key columns (e.g., one whose rows reordered explicitly creation) invalid behavior rendering paginating object undefined. value key column printed per page per unique combination values higher-priority (.e., left ) key columns. Locations repeated value printed within key column higher-priority-key combination page rendered empty space. Note, determination elements display within key column rendering based underlying value; non-default formatting applied column effect behavior. Display columns columns rendered, key columns. default non-key columns incoming data, need . Columns underlying data neither key display columns remain within object available computations rendered printing export listing.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/listings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Listing from a data.frame or tibble — as_listing","text":"","code":"dat <- ex_adae # This example demonstrates the listing with key_cols (values are grouped by USUBJID) and # multiple lines in prov_footer lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), main_title = \"Example Title for Listing\", subtitles = \"This is the subtitle for this Adverse Events Table\", main_footer = \"Main footer for the listing\", prov_footer = c( \"You can even add a subfooter\", \"Second element is place on a new line\", \"Third string\" ) ) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Example Title for Listing #> This is the subtitle for this Adverse Events Table #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier Subject Identifier for the Study Study Site Identifier Age Sex Race Country Investigator Identifier Description of Planned Arm Planned Arm Code Description of Actual Arm Actual Arm Code Stratification Factor 1 Stratification Factor 2 Continous Level Biomarker 1 Categorical Level Biomarker 2 Intent-To-Treat Population Flag Safety Population Flag Response Evaluable Population Flag Biomarker Evaluable Population Flag Date of Randomization Datetime of First Exposure to Treatment Datetime of Last Exposure to Treatment End of Study Status End of Study Date End of Study Relative Day Reason for Discontinuation from Study Date of Death Date Last Known Alive NOT A STANDARD BUT NEEDED FOR RCD Analysis Sequence Number Sponsor-Defined Identifier Reported Term for the Adverse Event Lowest Level Term Dictionary-Derived Term High Level Term High Level Group Term Body System or Organ Class Severity/Intensity Serious Event Analysis Causality Analysis Start Datetime Analysis End Datetime Analysis Start Relative Day Analysis End Relative Day Analysis Toxicity Grade AESER / AREL #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 3 3 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-20 2023-06-05 497 725 2 Y / N #> AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2023-02-08 2023-04-15 608 674 2 Y / N #> cl B AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2022-02-16 2022-11-10 251 518 3 N / N #> cl D AB12345 id-134 BRA-1 47 M WHITE BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S2 6.5 LOW Y Y Y N 2021-06-09 2021-06-10 13:26:53.956201 2023-06-11 01:05:17.956201 COMPLETED 2023-06-11 731 NA 2023-06-11 2023-06-29 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2022-04-10 2022-12-21 304 559 3 N / N #> AB12345-BRA-1-id-141 cl A AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 3 3 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-07-06 2022-07-29 493 516 1 N / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2022-10-21 2023-01-22 600 693 2 Y / N #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 5 5 trm A.1.1.1.1 llt A.1.1.1.1 dcd A.1.1.1.1 hlt A.1.1.1 hlgt A.1.1 cl A.1 MILD N N 2022-11-25 2023-01-07 635 678 1 N / N #> cl B AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 1 1 trm B.2.1.2.1 llt B.2.1.2.1 dcd B.2.1.2.1 hlt B.2.1.2 hlgt B.2.1 cl B.2 MODERATE N N 2021-11-14 2021-11-21 259 266 3 N / N #> cl D AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 2 2 trm D.2.1.5.3 llt D.2.1.5.3 dcd D.2.1.5.3 hlt D.2.1.5 hlgt D.2.1 cl D.2 MILD N Y 2021-12-28 2023-02-21 303 723 1 N / Y #> AB12345 id-141 BRA-1 35 F WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C B S1 7.5 HIGH Y Y Y Y 2021-02-25 2021-02-28 23:47:16.956201 2023-03-01 11:25:40.956201 COMPLETED 2023-03-01 731 NA 2023-03-01 2023-03-30 63113904 6 6 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2023-02-28 2023-03-01 730 731 5 Y / N #> AB12345-BRA-1-id-236 cl B AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 1 1 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-09-12 2022-10-27 22 432 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 2 2 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2022-02-18 2023-07-20 181 698 5 N / Y #> AB12345 id-236 BRA-1 32 M BLACK OR AFRICAN AMERICAN BRA BRA-1 B: Placebo ARM B B: Placebo ARM B A S2 7.7 HIGH Y Y Y Y 2021-08-17 2021-08-21 18:13:25.956201 2023-08-22 05:51:49.956201 COMPLETED 2023-08-22 731 NA 2023-08-22 2023-09-14 63113904 3 3 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2023-07-24 2023-07-28 702 706 5 N / Y #> AB12345-BRA-1-id-265 cl C AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-06-30 2020-08-13 48 92 2 N / Y #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 4 4 trm C.1.1.1.3 llt C.1.1.1.3 dcd C.1.1.1.3 hlt C.1.1.1 hlgt C.1.1 cl C.1 SEVERE N Y 2021-06-20 2021-07-27 403 440 4 N / Y #> cl D AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 2 2 trm D.1.1.4.2 llt D.1.1.4.2 dcd D.1.1.4.2 hlt D.1.1.4 hlgt D.1.1 cl D.1 MODERATE N N 2020-11-29 2021-05-10 200 362 3 N / N #> AB12345 id-265 BRA-1 25 M WHITE BRA BRA-1 C: Combination ARM C C: Combination ARM C A S2 10.3 MEDIUM Y Y Y N 2020-05-09 2020-05-13 00:38:12.956201 2021-09-18 15:23:35.956201 DISCONTINUED 2021-09-18 494 WITHDRAWAL BY PARENT/GUARDIAN 2021-09-18 2021-10-08 63113904 3 3 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2021-06-09 2021-06-30 392 413 5 Y / N #> AB12345-BRA-1-id-42 cl A AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 4 4 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-01-14 2021-09-30 160 419 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 6 6 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-10 2022-05-23 460 654 2 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 8 8 trm A.1.1.1.2 llt A.1.1.1.2 dcd A.1.1.1.2 hlt A.1.1.1 hlgt A.1.1 cl A.1 MODERATE Y N 2021-11-26 2022-03-18 476 588 2 Y / N #> cl B AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 5 5 trm B.2.2.3.1 llt B.2.2.3.1 dcd B.2.2.3.1 hlt B.2.2.3 hlgt B.2.2 cl B.2 MILD Y N 2021-05-26 2021-07-15 292 342 1 Y / N #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 7 7 trm B.1.1.1.1 llt B.1.1.1.1 dcd B.1.1.1.1 hlt B.1.1.1 hlgt B.1.1 cl B.1 SEVERE N Y 2021-11-20 2022-03-30 470 600 5 N / Y #> cl C AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 1 1 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-09-15 2022-02-03 39 545 2 N / Y #> AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 3 3 trm C.2.1.2.1 llt C.2.1.2.1 dcd C.2.1.2.1 hlt C.2.1.2 hlgt C.2.1 cl C.2 MODERATE N Y 2020-11-10 2021-09-12 95 401 2 N / Y #> cl D AB12345 id-42 BRA-1 36 M BLACK OR AFRICAN AMERICAN BRA BRA-1 A: Drug X ARM A A: Drug X ARM A B S1 2.3 MEDIUM Y Y Y Y 2020-08-06 2020-08-07 06:44:59.956201 NA ONGOING NA NA NA NA NA 63113904 2 2 trm D.1.1.1.1 llt D.1.1.1.1 dcd D.1.1.1.1 hlt D.1.1.1 hlgt D.1.1 cl D.1 SEVERE Y N 2020-10-11 2022-07-02 65 694 5 Y / N #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> Main footer for the listing #> #> You can even add a subfooter #> Second element is place on a new line #> Third string # This example demonstrates the listing table without key_cols # and specifying the cols with disp_cols. dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\") ) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 # This example demonstrates a listing with format configurations specified # via the default_formatting and col_formatting arguments dat <- ex_adae dat$AENDY[3:6] <- NA lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\"), disp_cols = c(\"STUDYID\", \"SEX\", \"ASEQ\", \"RANDDT\", \"ASTDY\", \"AENDY\"), default_formatting = list( all = fmt_config(align = \"left\"), numeric = fmt_config( format = \"xx.xx\", na_str = \"\", align = \"right\" ) ) ) %>% add_listing_col(\"BMRKR1\", format = \"xx.x\", align = \"center\") #> sorting incoming data by key columns mat <- matrix_form(lsting) cat(toString(mat)) #> Unique Subject Identifier Primary System Organ Class Study Identifier Sex Analysis Sequence Number Date of Randomization Analysis Start Relative Day Analysis End Relative Day Continous Level Biomarker 1 #> —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 M 3.00 2021-06-09 497.00 6.5 #> AB12345 M 4.00 2021-06-09 608.00 6.5 #> cl B AB12345 M 1.00 2021-06-09 251.00 518.00 6.5 #> cl D AB12345 M 2.00 2021-06-09 304.00 559.00 6.5 #> AB12345-BRA-1-id-141 cl A AB12345 F 3.00 2021-02-25 493.00 516.00 7.5 #> AB12345 F 4.00 2021-02-25 600.00 693.00 7.5 #> AB12345 F 5.00 2021-02-25 635.00 678.00 7.5 #> cl B AB12345 F 1.00 2021-02-25 259.00 7.5 #> cl D AB12345 F 2.00 2021-02-25 303.00 7.5 #> AB12345 F 6.00 2021-02-25 730.00 731.00 7.5 #> AB12345-BRA-1-id-236 cl B AB12345 M 1.00 2021-08-17 22.00 432.00 7.7 #> AB12345 M 2.00 2021-08-17 181.00 698.00 7.7 #> AB12345 M 3.00 2021-08-17 702.00 706.00 7.7 #> AB12345-BRA-1-id-265 cl C AB12345 M 1.00 2020-05-09 48.00 92.00 10.3 #> AB12345 M 4.00 2020-05-09 403.00 440.00 10.3 #> cl D AB12345 M 2.00 2020-05-09 200.00 362.00 10.3 #> AB12345 M 3.00 2020-05-09 392.00 413.00 10.3 #> AB12345-BRA-1-id-42 cl A AB12345 M 4.00 2020-08-06 160.00 419.00 2.3 #> AB12345 M 6.00 2020-08-06 460.00 654.00 2.3 #> AB12345 M 8.00 2020-08-06 476.00 588.00 2.3 #> cl B AB12345 M 5.00 2020-08-06 292.00 342.00 2.3 #> AB12345 M 7.00 2020-08-06 470.00 600.00 2.3 #> cl C AB12345 M 1.00 2020-08-06 39.00 545.00 2.3 #> AB12345 M 3.00 2020-08-06 95.00 401.00 2.3 #> cl D AB12345 M 2.00 2020-08-06 65.00 694.00 2.3"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Make pagination dataframe for a listing — make_row_df,listing_df-method","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"Make pagination dataframe listing","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"# S4 method for listing_df make_row_df( tt, colwidths = NULL, visible_only = TRUE, rownum = 0, indent = 0L, path = character(), incontent = FALSE, repr_ext = 0L, repr_inds = integer(), sibpos = NA_integer_, nsibs = NA_integer_ )"},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"tt listing_df. listing rendered colwidths numeric. Internal detail set manually. visible_only logical(1). Ignored, listings non-visible structural elements. rownum numeric(1). Internal detail set manually. indent integer(1). Internal detail set manually. path character. Path (sub)table represented tt. Defaults character() incontent logical(1). Internal detail set manually. repr_ext integer(1). Internal detail set manually. repr_inds integer. Internal detail set manually. sibpos integer(1). Internal detail set manually. nsibs integer(1). Internal detail set manually.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"data.frame pagination information.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/make_row_df-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make pagination dataframe for a listing — make_row_df,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Although rtables represented tree data structure outputting table ASCII HTML useful map rtable state formatted cells matrix form.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"# S4 method for listing_df matrix_form(obj, indent_rownames = FALSE, expand_newlines = TRUE)"},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"obj . Object transformed ready--render form (MatrixPrintForm object) indent_rownames logical(1). Silently ignored, listings row names indenting structure. expand_newlines logical(1). matrix form generated expand rows whose values contain newlines multiple 'physical' rows ( appear rendered ASCII). Defaults TRUE","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"MatrixPrintForm object","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"strings return object defined follows: row labels determined summarize_rows cell values determined using get_formatted_cells. (Column labels calculated using non-exported internal function.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"Parameter expand_newlines always TRUE listings. keep debugging reasons.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/matrix_form-listing_df-method.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transform rtable to a list of matrices which can be used for outputting — matrix_form,listing_df-method","text":"","code":"lsting <- as_listing(mtcars) #> sorting incoming data by key columns mf <- matrix_form(lsting)"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":null,"dir":"Reference","previous_headings":"","what":"Paginate listings — paginate_listing","title":"Paginate listings — paginate_listing","text":"Pagination listing. can vertical long listings many rows horizontal many columns.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Paginate listings — paginate_listing","text":"","code":"paginate_listing( lsting, page_type = \"letter\", font_family = \"Courier\", font_size = 8, lineheight = 1, landscape = FALSE, pg_width = NULL, pg_height = NULL, margins = c(top = 0.5, bottom = 0.5, left = 0.75, right = 0.75), lpp = NA_integer_, cpp = NA_integer_, colwidths = propose_column_widths(lsting), tf_wrap = !is.null(max_width), max_width = NULL, verbose = FALSE )"},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Paginate listings — paginate_listing","text":"lsting listing_df. listing paginate. page_type character(1). Name page type. See page_types. Ignored pg_width pg_height set directly. font_family character(1). Name font family. error thrown family named monospaced. Defaults Courier. font_size numeric(1). Font size, defaults 12. lineheight numeric(1). Line height, defaults 1. landscape logical(1). dimensions page_type inverted landscape? Defaults FALSE, ignored pg_width pg_height set directly. pg_width numeric(1). Page width inches. pg_height numeric(1). Page height inches. margins numeric(4). Named numeric vector containing 'bottom', 'left', 'top', 'right' margins inches. Defaults .5 inches vertical margins .75 horizontal margins. lpp numeric(1) NULL. Number row lines (counting titles footers) per page. Standard 70 NULL disables vertical pagination. cpp numeric(1) NULL. Width (characters) pages horizontal pagination. NULL (default) indicates horizontal pagination done. colwidths numeric vector. Column widths (characters) use vertical pagination. tf_wrap logical(1). texts title, subtitle, footnotes wrapped? max_width integer(1), character(1) NULL. Width title footer (including footnotes) materials word-wrapped . NULL, set current print width session (getOption(\"width\")). set \"auto\", width table (plus table inset) used. Ignored completely tf_wrap FALSE. verbose logical(1). additional informative messages search pagination breaks shown. Defaults FALSE.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Paginate listings — paginate_listing","text":"list listings' objects meant separated pages. pag_tt_indices list paginated-groups row-indices lsting. paginate_listing list containing separate listing_df objects page, pag_listing_indices, list indices direction paginated corresponding individual pages dimension.","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/paginate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Paginate listings — paginate_listing","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], disp_cols = c(\"USUBJID\", \"AESOC\", \"RACE\", \"AETOXGR\", \"BMRKR1\")) mat <- matrix_form(lsting) cat(toString(mat)) #> Study Identifier Unique Subject Identifier Primary System Organ Class Race Analysis Toxicity Grade Continous Level Biomarker 1 #> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl D WHITE 3 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-134 cl A WHITE 2 6.46299057842479 #> AB12345-BRA-1-id-141 cl B WHITE 3 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 2 7.51607612428241 #> AB12345-BRA-1-id-141 cl A WHITE 1 7.51607612428241 #> AB12345-BRA-1-id-141 cl D WHITE 5 7.51607612428241 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN 5 7.66300121077566 #> AB12345-BRA-1-id-265 cl C WHITE 2 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 3 10.323346349886 #> AB12345-BRA-1-id-265 cl D WHITE 5 10.323346349886 #> AB12345-BRA-1-id-265 cl C WHITE 4 10.323346349886 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 1 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN 5 2.26753940777848 #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN 2 2.26753940777848 paginate_listing(lsting, lpp = 10) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B WHITE #> AB12345-BRA-1-id-134 cl D WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-134 cl A WHITE #> AB12345-BRA-1-id-141 cl B WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl A WHITE #> #> [[2]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 3 6.46299057842479 #> 3 6.46299057842479 #> 2 6.46299057842479 #> 2 6.46299057842479 #> 3 7.51607612428241 #> 1 7.51607612428241 #> 1 7.51607612428241 #> 2 7.51607612428241 #> #> [[3]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-141 cl A WHITE #> AB12345-BRA-1-id-141 cl D WHITE #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> AB12345-BRA-1-id-265 cl D WHITE #> #> [[4]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 1 7.51607612428241 #> 5 7.51607612428241 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 5 7.66300121077566 #> 2 10.323346349886 #> 3 10.323346349886 #> 5 10.323346349886 #> #> [[5]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-265 cl C WHITE #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl D BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl C BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> #> [[6]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 4 10.323346349886 #> 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> 2 2.26753940777848 #> 1 2.26753940777848 #> #> [[7]] #> Study Identifier Unique Subject Identifier Primary System Organ Class Race #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl B BLACK OR AFRICAN AMERICAN #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN #> #> [[8]] #> Study Identifier Analysis Toxicity Grade Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————— #> AB12345 2 2.26753940777848 #> 5 2.26753940777848 #> 2 2.26753940777848 #> paginate_listing(lsting, cpp = 100, lpp = 40) #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> paginate_listing(lsting, cpp = 80, lpp = 40, verbose = TRUE) #> Determining lines required for header content: 0 title and 2 table header lines #> Determining lines required for footer content: 0 lines #> Lines per page available for tables rows: 38 (original: 40) #> --------- ROW-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 25 row #> OK [25 lines] #> Adjusted characters per page: 80 [original: 80, table inset: 0] #> ========= COLUMN-WISE: Checking possible pagination for page 1 #> -> Attempting pagination between 1 and 6 column #> FAIL: selected columns require 160 chars (6 cols). #> -> Attempting pagination between 1 and 5 column #> FAIL: selected columns require 130 chars (5 cols). #> -> Attempting pagination between 1 and 4 column #> FAIL: selected columns require 104 chars (4 cols). #> -> Attempting pagination between 1 and 3 column #> OK [76 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 2 #> -> Attempting pagination between 4 and 6 column #> FAIL: selected columns require 84 chars (3 cols). #> -> Attempting pagination between 4 and 5 column #> OK [73 chars] #> ========= COLUMN-WISE: Checking possible pagination for page 3 #> -> Attempting pagination between 6 and 6 column #> OK [49 chars] #> [[1]] #> Study Identifier Unique Subject Identifier Primary System Organ Class #> ————————————————————————————————————————————————————————————————————————— #> AB12345 AB12345-BRA-1-id-134 cl B #> AB12345-BRA-1-id-134 cl D #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-134 cl A #> AB12345-BRA-1-id-141 cl B #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl A #> AB12345-BRA-1-id-141 cl D #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-236 cl B #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl D #> AB12345-BRA-1-id-265 cl C #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl D #> AB12345-BRA-1-id-42 cl C #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> AB12345-BRA-1-id-42 cl B #> AB12345-BRA-1-id-42 cl A #> #> [[2]] #> Study Identifier Race Analysis Toxicity Grade #> —————————————————————————————————————————————————————————————————————— #> AB12345 WHITE 3 #> WHITE 3 #> WHITE 2 #> WHITE 2 #> WHITE 3 #> WHITE 1 #> WHITE 1 #> WHITE 2 #> WHITE 1 #> WHITE 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 5 #> WHITE 2 #> WHITE 3 #> WHITE 5 #> WHITE 4 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 1 #> BLACK OR AFRICAN AMERICAN 2 #> BLACK OR AFRICAN AMERICAN 5 #> BLACK OR AFRICAN AMERICAN 2 #> #> [[3]] #> Study Identifier Continous Level Biomarker 1 #> —————————————————————————————————————————————— #> AB12345 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 6.46299057842479 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.51607612428241 #> 7.66300121077566 #> 7.66300121077566 #> 7.66300121077566 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 10.323346349886 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #> 2.26753940777848 #>"},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":null,"dir":"Reference","previous_headings":"","what":"Objects exported from other packages — reexports","title":"Objects exported from other packages — reexports","text":"objects imported packages. Follow links see documentation. formatters export_as_txt","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/reexports.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Objects exported from other packages — reexports","text":"","code":"dat <- ex_adae lsting <- as_listing(dat[1:25, ], key_cols = c(\"USUBJID\", \"AESOC\")) %>% add_listing_col(\"AETOXGR\") %>% add_listing_col(\"BMRKR1\", format = \"xx.x\") %>% add_listing_col(\"AESER / AREL\", fun = function(df) paste(df$AESER, df$AREL, sep = \" / \")) #> sorting incoming data by key columns main_title(lsting) <- \"this is some title\" main_footer(lsting) <- \"this is some footer\" cat(export_as_txt(lsting, file = NULL, paginate = TRUE)) #> this is some title #> #> ————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Identifier #> ————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345-BRA-1-id-141 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-236 cl B AB12345 #> AB12345 #> AB12345 #> AB12345-BRA-1-id-265 cl C AB12345 #> AB12345 #> cl D AB12345 #> AB12345 #> AB12345-BRA-1-id-42 cl A AB12345 #> AB12345 #> AB12345 #> cl B AB12345 #> AB12345 #> cl C AB12345 #> AB12345 #> cl D AB12345 #> ————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Subject Identifier for the Study #> ————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A id-134 #> id-134 #> cl B id-134 #> cl D id-134 #> AB12345-BRA-1-id-141 cl A id-141 #> id-141 #> id-141 #> cl B id-141 #> cl D id-141 #> id-141 #> AB12345-BRA-1-id-236 cl B id-236 #> id-236 #> id-236 #> AB12345-BRA-1-id-265 cl C id-265 #> id-265 #> cl D id-265 #> id-265 #> AB12345-BRA-1-id-42 cl A id-42 #> id-42 #> id-42 #> cl B id-42 #> id-42 #> cl C id-42 #> id-42 #> cl D id-42 #> ————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Study Site Identifier Age Sex #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 47 M #> BRA-1 47 M #> cl B BRA-1 47 M #> cl D BRA-1 47 M #> AB12345-BRA-1-id-141 cl A BRA-1 35 F #> BRA-1 35 F #> BRA-1 35 F #> cl B BRA-1 35 F #> cl D BRA-1 35 F #> BRA-1 35 F #> AB12345-BRA-1-id-236 cl B BRA-1 32 M #> BRA-1 32 M #> BRA-1 32 M #> AB12345-BRA-1-id-265 cl C BRA-1 25 M #> BRA-1 25 M #> cl D BRA-1 25 M #> BRA-1 25 M #> AB12345-BRA-1-id-42 cl A BRA-1 36 M #> BRA-1 36 M #> BRA-1 36 M #> cl B BRA-1 36 M #> BRA-1 36 M #> cl C BRA-1 36 M #> BRA-1 36 M #> cl D BRA-1 36 M #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Race Country #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> AB12345-BRA-1-id-141 cl A WHITE BRA #> WHITE BRA #> WHITE BRA #> cl B WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-236 cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> AB12345-BRA-1-id-265 cl C WHITE BRA #> WHITE BRA #> cl D WHITE BRA #> WHITE BRA #> AB12345-BRA-1-id-42 cl A BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl B BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl C BLACK OR AFRICAN AMERICAN BRA #> BLACK OR AFRICAN AMERICAN BRA #> cl D BLACK OR AFRICAN AMERICAN BRA #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Investigator Identifier #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> AB12345-BRA-1-id-141 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-236 cl B BRA-1 #> BRA-1 #> BRA-1 #> AB12345-BRA-1-id-265 cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> BRA-1 #> AB12345-BRA-1-id-42 cl A BRA-1 #> BRA-1 #> BRA-1 #> cl B BRA-1 #> BRA-1 #> cl C BRA-1 #> BRA-1 #> cl D BRA-1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Planned Arm Planned Arm Code #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> —————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Description of Actual Arm Actual Arm Code #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> cl D A: Drug X ARM A #> AB12345-BRA-1-id-141 cl A C: Combination ARM C #> C: Combination ARM C #> C: Combination ARM C #> cl B C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-236 cl B B: Placebo ARM B #> B: Placebo ARM B #> B: Placebo ARM B #> AB12345-BRA-1-id-265 cl C C: Combination ARM C #> C: Combination ARM C #> cl D C: Combination ARM C #> C: Combination ARM C #> AB12345-BRA-1-id-42 cl A A: Drug X ARM A #> A: Drug X ARM A #> A: Drug X ARM A #> cl B A: Drug X ARM A #> A: Drug X ARM A #> cl C A: Drug X ARM A #> A: Drug X ARM A #> cl D A: Drug X ARM A #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 1 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A B #> B #> cl B B #> cl D B #> AB12345-BRA-1-id-141 cl A B #> B #> B #> cl B B #> cl D B #> B #> AB12345-BRA-1-id-236 cl B A #> A #> A #> AB12345-BRA-1-id-265 cl C A #> A #> cl D A #> A #> AB12345-BRA-1-id-42 cl A B #> B #> B #> cl B B #> B #> cl C B #> B #> cl D B #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Stratification Factor 2 #> ———————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A S2 #> S2 #> cl B S2 #> cl D S2 #> AB12345-BRA-1-id-141 cl A S1 #> S1 #> S1 #> cl B S1 #> cl D S1 #> S1 #> AB12345-BRA-1-id-236 cl B S2 #> S2 #> S2 #> AB12345-BRA-1-id-265 cl C S2 #> S2 #> cl D S2 #> S2 #> AB12345-BRA-1-id-42 cl A S1 #> S1 #> S1 #> cl B S1 #> S1 #> cl C S1 #> S1 #> cl D S1 #> ———————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Continous Level Biomarker 1 #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 6.5 #> 6.5 #> cl B 6.5 #> cl D 6.5 #> AB12345-BRA-1-id-141 cl A 7.5 #> 7.5 #> 7.5 #> cl B 7.5 #> cl D 7.5 #> 7.5 #> AB12345-BRA-1-id-236 cl B 7.7 #> 7.7 #> 7.7 #> AB12345-BRA-1-id-265 cl C 10.3 #> 10.3 #> cl D 10.3 #> 10.3 #> AB12345-BRA-1-id-42 cl A 2.3 #> 2.3 #> 2.3 #> cl B 2.3 #> 2.3 #> cl C 2.3 #> 2.3 #> cl D 2.3 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Categorical Level Biomarker 2 #> —————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A LOW #> LOW #> cl B LOW #> cl D LOW #> AB12345-BRA-1-id-141 cl A HIGH #> HIGH #> HIGH #> cl B HIGH #> cl D HIGH #> HIGH #> AB12345-BRA-1-id-236 cl B HIGH #> HIGH #> HIGH #> AB12345-BRA-1-id-265 cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> MEDIUM #> AB12345-BRA-1-id-42 cl A MEDIUM #> MEDIUM #> MEDIUM #> cl B MEDIUM #> MEDIUM #> cl C MEDIUM #> MEDIUM #> cl D MEDIUM #> —————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Intent-To-Treat Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Safety Population Flag #> ——————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Response Evaluable Population Flag #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A Y #> Y #> cl B Y #> cl D Y #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C Y #> Y #> cl D Y #> Y #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Biomarker Evaluable Population Flag #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N #> N #> cl B N #> cl D N #> AB12345-BRA-1-id-141 cl A Y #> Y #> Y #> cl B Y #> cl D Y #> Y #> AB12345-BRA-1-id-236 cl B Y #> Y #> Y #> AB12345-BRA-1-id-265 cl C N #> N #> cl D N #> N #> AB12345-BRA-1-id-42 cl A Y #> Y #> Y #> cl B Y #> Y #> cl C Y #> Y #> cl D Y #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Randomization #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-09 #> 2021-06-09 #> cl B 2021-06-09 #> cl D 2021-06-09 #> AB12345-BRA-1-id-141 cl A 2021-02-25 #> 2021-02-25 #> 2021-02-25 #> cl B 2021-02-25 #> cl D 2021-02-25 #> 2021-02-25 #> AB12345-BRA-1-id-236 cl B 2021-08-17 #> 2021-08-17 #> 2021-08-17 #> AB12345-BRA-1-id-265 cl C 2020-05-09 #> 2020-05-09 #> cl D 2020-05-09 #> 2020-05-09 #> AB12345-BRA-1-id-42 cl A 2020-08-06 #> 2020-08-06 #> 2020-08-06 #> cl B 2020-08-06 #> 2020-08-06 #> cl C 2020-08-06 #> 2020-08-06 #> cl D 2020-08-06 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of First Exposure to Treatment #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2021-06-10 13:26:53.956201 #> 2021-06-10 13:26:53.956201 #> cl B 2021-06-10 13:26:53.956201 #> cl D 2021-06-10 13:26:53.956201 #> AB12345-BRA-1-id-141 cl A 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> cl B 2021-02-28 23:47:16.956201 #> cl D 2021-02-28 23:47:16.956201 #> 2021-02-28 23:47:16.956201 #> AB12345-BRA-1-id-236 cl B 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> 2021-08-21 18:13:25.956201 #> AB12345-BRA-1-id-265 cl C 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> cl D 2020-05-13 00:38:12.956201 #> 2020-05-13 00:38:12.956201 #> AB12345-BRA-1-id-42 cl A 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl B 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl C 2020-08-07 06:44:59.956201 #> 2020-08-07 06:44:59.956201 #> cl D 2020-08-07 06:44:59.956201 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Datetime of Last Exposure to Treatment #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 01:05:17.956201 #> 2023-06-11 01:05:17.956201 #> cl B 2023-06-11 01:05:17.956201 #> cl D 2023-06-11 01:05:17.956201 #> AB12345-BRA-1-id-141 cl A 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> cl B 2023-03-01 11:25:40.956201 #> cl D 2023-03-01 11:25:40.956201 #> 2023-03-01 11:25:40.956201 #> AB12345-BRA-1-id-236 cl B 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> 2023-08-22 05:51:49.956201 #> AB12345-BRA-1-id-265 cl C 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> cl D 2021-09-18 15:23:35.956201 #> 2021-09-18 15:23:35.956201 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Status End of Study Date #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A COMPLETED 2023-06-11 #> COMPLETED 2023-06-11 #> cl B COMPLETED 2023-06-11 #> cl D COMPLETED 2023-06-11 #> AB12345-BRA-1-id-141 cl A COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> cl B COMPLETED 2023-03-01 #> cl D COMPLETED 2023-03-01 #> COMPLETED 2023-03-01 #> AB12345-BRA-1-id-236 cl B COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> COMPLETED 2023-08-22 #> AB12345-BRA-1-id-265 cl C DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> cl D DISCONTINUED 2021-09-18 #> DISCONTINUED 2021-09-18 #> AB12345-BRA-1-id-42 cl A ONGOING NA #> ONGOING NA #> ONGOING NA #> cl B ONGOING NA #> ONGOING NA #> cl C ONGOING NA #> ONGOING NA #> cl D ONGOING NA #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class End of Study Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 731 #> 731 #> cl B 731 #> cl D 731 #> AB12345-BRA-1-id-141 cl A 731 #> 731 #> 731 #> cl B 731 #> cl D 731 #> 731 #> AB12345-BRA-1-id-236 cl B 731 #> 731 #> 731 #> AB12345-BRA-1-id-265 cl C 494 #> 494 #> cl D 494 #> 494 #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reason for Discontinuation from Study #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A NA #> NA #> cl B NA #> cl D NA #> AB12345-BRA-1-id-141 cl A NA #> NA #> NA #> cl B NA #> cl D NA #> NA #> AB12345-BRA-1-id-236 cl B NA #> NA #> NA #> AB12345-BRA-1-id-265 cl C WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> cl D WITHDRAWAL BY PARENT/GUARDIAN #> WITHDRAWAL BY PARENT/GUARDIAN #> AB12345-BRA-1-id-42 cl A NA #> NA #> NA #> cl B NA #> NA #> cl C NA #> NA #> cl D NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Date of Death Date Last Known Alive #> —————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-11 2023-06-29 #> 2023-06-11 2023-06-29 #> cl B 2023-06-11 2023-06-29 #> cl D 2023-06-11 2023-06-29 #> AB12345-BRA-1-id-141 cl A 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> cl B 2023-03-01 2023-03-30 #> cl D 2023-03-01 2023-03-30 #> 2023-03-01 2023-03-30 #> AB12345-BRA-1-id-236 cl B 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> 2023-08-22 2023-09-14 #> AB12345-BRA-1-id-265 cl C 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> cl D 2021-09-18 2021-10-08 #> 2021-09-18 2021-10-08 #> AB12345-BRA-1-id-42 cl A NA NA #> NA NA #> NA NA #> cl B NA NA #> NA NA #> cl C NA NA #> NA NA #> cl D NA NA #> —————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class NOT A STANDARD BUT NEEDED FOR RCD #> —————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> AB12345-BRA-1-id-141 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-236 cl B 63113904 #> 63113904 #> 63113904 #> AB12345-BRA-1-id-265 cl C 63113904 #> 63113904 #> cl D 63113904 #> 63113904 #> AB12345-BRA-1-id-42 cl A 63113904 #> 63113904 #> 63113904 #> cl B 63113904 #> 63113904 #> cl C 63113904 #> 63113904 #> cl D 63113904 #> —————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Sequence Number #> ————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Sponsor-Defined Identifier #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 3 #> 4 #> cl B 1 #> cl D 2 #> AB12345-BRA-1-id-141 cl A 3 #> 4 #> 5 #> cl B 1 #> cl D 2 #> 6 #> AB12345-BRA-1-id-236 cl B 1 #> 2 #> 3 #> AB12345-BRA-1-id-265 cl C 1 #> 4 #> cl D 2 #> 3 #> AB12345-BRA-1-id-42 cl A 4 #> 6 #> 8 #> cl B 5 #> 7 #> cl C 1 #> 3 #> cl D 2 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Reported Term for the Adverse Event #> ———————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.1.2.1 #> cl D trm D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A trm A.1.1.1.1 #> trm A.1.1.1.2 #> trm A.1.1.1.1 #> cl B trm B.2.1.2.1 #> cl D trm D.2.1.5.3 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B trm B.1.1.1.1 #> trm B.1.1.1.1 #> trm B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C trm C.2.1.2.1 #> trm C.1.1.1.3 #> cl D trm D.1.1.4.2 #> trm D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A trm A.1.1.1.2 #> trm A.1.1.1.2 #> trm A.1.1.1.2 #> cl B trm B.2.2.3.1 #> trm B.1.1.1.1 #> cl C trm C.2.1.2.1 #> trm C.2.1.2.1 #> cl D trm D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Lowest Level Term Dictionary-Derived Term #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> AB12345-BRA-1-id-141 cl A llt A.1.1.1.1 dcd A.1.1.1.1 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.1 dcd A.1.1.1.1 #> cl B llt B.2.1.2.1 dcd B.2.1.2.1 #> cl D llt D.2.1.5.3 dcd D.2.1.5.3 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-236 cl B llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> AB12345-BRA-1-id-265 cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.1.1.1.3 dcd C.1.1.1.3 #> cl D llt D.1.1.4.2 dcd D.1.1.4.2 #> llt D.1.1.1.1 dcd D.1.1.1.1 #> AB12345-BRA-1-id-42 cl A llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> llt A.1.1.1.2 dcd A.1.1.1.2 #> cl B llt B.2.2.3.1 dcd B.2.2.3.1 #> llt B.1.1.1.1 dcd B.1.1.1.1 #> cl C llt C.2.1.2.1 dcd C.2.1.2.1 #> llt C.2.1.2.1 dcd C.2.1.2.1 #> cl D llt D.1.1.1.1 dcd D.1.1.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class High Level Term High Level Group Term #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> AB12345-BRA-1-id-141 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.1.2 hlgt B.2.1 #> cl D hlt D.2.1.5 hlgt D.2.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-236 cl B hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> hlt B.1.1.1 hlgt B.1.1 #> AB12345-BRA-1-id-265 cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.1.1.1 hlgt C.1.1 #> cl D hlt D.1.1.4 hlgt D.1.1 #> hlt D.1.1.1 hlgt D.1.1 #> AB12345-BRA-1-id-42 cl A hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> hlt A.1.1.1 hlgt A.1.1 #> cl B hlt B.2.2.3 hlgt B.2.2 #> hlt B.1.1.1 hlgt B.1.1 #> cl C hlt C.2.1.2 hlgt C.2.1 #> hlt C.2.1.2 hlgt C.2.1 #> cl D hlt D.1.1.1 hlgt D.1.1 #> ———————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Body System or Organ Class #> ——————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.1 #> AB12345-BRA-1-id-141 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl D cl D.2 #> cl D.1 #> AB12345-BRA-1-id-236 cl B cl B.1 #> cl B.1 #> cl B.1 #> AB12345-BRA-1-id-265 cl C cl C.2 #> cl C.1 #> cl D cl D.1 #> cl D.1 #> AB12345-BRA-1-id-42 cl A cl A.1 #> cl A.1 #> cl A.1 #> cl B cl B.2 #> cl B.1 #> cl C cl C.2 #> cl C.2 #> cl D cl D.1 #> ——————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Severity/Intensity Serious Event #> ——————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A MODERATE Y #> MODERATE Y #> cl B MODERATE N #> cl D MODERATE N #> AB12345-BRA-1-id-141 cl A MILD N #> MODERATE Y #> MILD N #> cl B MODERATE N #> cl D MILD N #> SEVERE Y #> AB12345-BRA-1-id-236 cl B SEVERE N #> SEVERE N #> SEVERE N #> AB12345-BRA-1-id-265 cl C MODERATE N #> SEVERE N #> cl D MODERATE N #> SEVERE Y #> AB12345-BRA-1-id-42 cl A MODERATE Y #> MODERATE Y #> MODERATE Y #> cl B MILD Y #> SEVERE N #> cl C MODERATE N #> MODERATE N #> cl D SEVERE Y #> ——————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Causality Analysis Start Datetime #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A N 2022-10-20 #> N 2023-02-08 #> cl B N 2022-02-16 #> cl D N 2022-04-10 #> AB12345-BRA-1-id-141 cl A N 2022-07-06 #> N 2022-10-21 #> N 2022-11-25 #> cl B N 2021-11-14 #> cl D Y 2021-12-28 #> N 2023-02-28 #> AB12345-BRA-1-id-236 cl B Y 2021-09-12 #> Y 2022-02-18 #> Y 2023-07-24 #> AB12345-BRA-1-id-265 cl C Y 2020-06-30 #> Y 2021-06-20 #> cl D N 2020-11-29 #> N 2021-06-09 #> AB12345-BRA-1-id-42 cl A N 2021-01-14 #> N 2021-11-10 #> N 2021-11-26 #> cl B N 2021-05-26 #> Y 2021-11-20 #> cl C Y 2020-09-15 #> Y 2020-11-10 #> cl D N 2020-10-11 #> ————————————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Datetime #> —————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2023-06-05 #> 2023-04-15 #> cl B 2022-11-10 #> cl D 2022-12-21 #> AB12345-BRA-1-id-141 cl A 2022-07-29 #> 2023-01-22 #> 2023-01-07 #> cl B 2021-11-21 #> cl D 2023-02-21 #> 2023-03-01 #> AB12345-BRA-1-id-236 cl B 2022-10-27 #> 2023-07-20 #> 2023-07-28 #> AB12345-BRA-1-id-265 cl C 2020-08-13 #> 2021-07-27 #> cl D 2021-05-10 #> 2021-06-30 #> AB12345-BRA-1-id-42 cl A 2021-09-30 #> 2022-05-23 #> 2022-03-18 #> cl B 2021-07-15 #> 2022-03-30 #> cl C 2022-02-03 #> 2021-09-12 #> cl D 2022-07-02 #> —————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ———————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Start Relative Day #> ———————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 497 #> 608 #> cl B 251 #> cl D 304 #> AB12345-BRA-1-id-141 cl A 493 #> 600 #> 635 #> cl B 259 #> cl D 303 #> 730 #> AB12345-BRA-1-id-236 cl B 22 #> 181 #> 702 #> AB12345-BRA-1-id-265 cl C 48 #> 403 #> cl D 200 #> 392 #> AB12345-BRA-1-id-42 cl A 160 #> 460 #> 476 #> cl B 292 #> 470 #> cl C 39 #> 95 #> cl D 65 #> ———————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> —————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis End Relative Day #> —————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 725 #> 674 #> cl B 518 #> cl D 559 #> AB12345-BRA-1-id-141 cl A 516 #> 693 #> 678 #> cl B 266 #> cl D 723 #> 731 #> AB12345-BRA-1-id-236 cl B 432 #> 698 #> 706 #> AB12345-BRA-1-id-265 cl C 92 #> 440 #> cl D 362 #> 413 #> AB12345-BRA-1-id-42 cl A 419 #> 654 #> 588 #> cl B 342 #> 600 #> cl C 545 #> 401 #> cl D 694 #> —————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer #> \\s\\nthis is some title #> #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> Unique Subject Identifier Primary System Organ Class Analysis Toxicity Grade AESER / AREL #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> AB12345-BRA-1-id-134 cl A 2 Y / N #> 2 Y / N #> cl B 3 N / N #> cl D 3 N / N #> AB12345-BRA-1-id-141 cl A 1 N / N #> 2 Y / N #> 1 N / N #> cl B 3 N / N #> cl D 1 N / Y #> 5 Y / N #> AB12345-BRA-1-id-236 cl B 5 N / Y #> 5 N / Y #> 5 N / Y #> AB12345-BRA-1-id-265 cl C 2 N / Y #> 4 N / Y #> cl D 3 N / N #> 5 Y / N #> AB12345-BRA-1-id-42 cl A 2 Y / N #> 2 Y / N #> 2 Y / N #> cl B 1 Y / N #> 5 N / Y #> cl C 2 N / Y #> 2 N / Y #> cl D 5 Y / N #> ——————————————————————————————————————————————————————————————————————————————————————————————— #> #> this is some footer"},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":null,"dir":"Reference","previous_headings":"","what":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Listings often part submission clinical trial data regulatory settings. provide framework specific formatting features often used displaying large datasets context.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/rlistings/reference/rlistings-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"rlistings: Clinical Trial Style Data Readout Listings — rlistings-package","text":"Maintainer: Joe Zhu joe.zhu@roche.com Authors: Gabriel Becker gabembecker@gmail.com (original creator package) Adrian Waddell adrian.waddell@gene.com contributors: Davide Garolini davide.garolini@roche.com [contributor] Emily de la Rua emily.de_la_rua@contractors.roche.com [contributor] Abinaya Yogasekaram abinaya.yogasekaram@contractors.roche.com [contributor] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":null,"dir":"Reference","previous_headings":"","what":"Utilities for formatting a listing column — format_colvector","title":"Utilities for formatting a listing column — format_colvector","text":"vec_nlines, calculate number lines element column vector take render. format_colvector,","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Utilities for formatting a listing column — format_colvector","text":"","code":"format_colvector(df, colnm, colvec = df[[colnm]]) vec_nlines(vec, max_width = NULL) # S4 method for ANY vec_nlines(vec, max_width = NULL)"},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Utilities for formatting a listing column — format_colvector","text":"df listing_df. listing. colnm Column name colvec Column values based colnm vec vector. max_width numeric (NULL). width column rendered .","code":""},{"path":"https://insightsengineering.github.io/rlistings/reference/vec_nlines.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Utilities for formatting a listing column — format_colvector","text":"numeric vector number lines elementwise needed render elements vec width max_width.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-0279006","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7.9006","title":"rlistings 0.2.7.9006","text":"Added relevant tests pagination key columns need repeated page empty. Added relevant tests new line characters’ handling footnotes titles.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-027","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.7","title":"rlistings 0.2.7","text":"CRAN release: 2023-12-06 Applied styler resolved package lint. Changed default indentation 4 spaces 2. Fixed bug add_listing_col function format specified. Added vignette referential footnotes workaround. Added vignette formatting columns. Added vignette pagination.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-026","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.6","title":"rlistings 0.2.6","text":"Fixed bug pagination preventing key column values appear paginated listings export_as_txt used. Added tests cover export_as_txt outputs. Integrated support newline characters.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-025","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.5","title":"rlistings 0.2.5","text":"Fixed bug as_listing preventing custom formatting applied key columns. Updated matrix_form allow NA values key columns. Updated as_listing trim rows containing NA values print informative message.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-024","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.4","title":"rlistings 0.2.4","text":"CRAN release: 2023-08-26 Added num_rep_cols method listings. Resolves error key column repetition pagination . Fixed bug exporting degenerative list, data frame single row single column. Specified minimal version package dependencies.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-023","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.3","title":"rlistings 0.2.3","text":"Added new arguments default_formatting col_formatting as_listing specify column format configurations. Added new argument unique_rows as_listing remove duplicate rows listing. Default alignment now left across types. Reinstate NA default. Introduced testthat edition 3.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-022","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.2","title":"rlistings 0.2.2","text":"CRAN release: 2023-05-25 Moved export_as_txt formatters. Added reexports.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-021","dir":"Changelog","previous_headings":"","what":"rlistings 0.2.1","title":"rlistings 0.2.1","text":"CRAN release: 2023-03-17","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"enhancements-0-2-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"rlistings 0.2.1","text":"Extend page-size machinery pagination allowing page specification (page_type, pg_width, pg_height, font_family, font_size) transformed lpp (lines per page) cpp (characters per page). New function export_as_txt support output saved plain text. cols argument renamed disp_cols function as_listing. New argument non_disp_cols function as_listing. disp_cols argument now defaults columns included key_cols. Columns named key_cols longer need also listed disp_cols. Pagination now calculated based formatted cells values (including wrapping) rather raw cell contents. Key columns now guaranteed leftmost columns (stored displayed) listing_df objects. Added tests paginate_listing. Added development cycle lifecycle support, experimental badges. Added initial installments checkmate assertion support. Added main package page relevant imports descriptions (rlistings-package). Added “Get Started” vignette updated README. Added markdown support functions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"rlistings 0.2.1","text":"matrix_form(lsting, TRUE) longer throws error.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-011","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.1","title":"rlistings 0.1.1","text":"Add title, subtitle, (main prov) footer support. Now depends dplyr instead magrittr hopefully avoid var_labels droppage issues. paginate_listing now supports pagination directions.","code":""},{"path":"https://insightsengineering.github.io/rlistings/news/index.html","id":"rlistings-010","dir":"Changelog","previous_headings":"","what":"rlistings 0.1.0","title":"rlistings 0.1.0","text":"Initial experimental rlistings API. Everything subject change.","code":""}]