Skip to contents

listing_table() prepares a data subset to be added to add_listing_to_report() is used to build listing tables for each deletion data subset listing tables can then be modified further using reporter::define() or sent to add_listing_to_report() where listing tables are the second argument

Usage

listing_table(listing, title, ...)

Arguments

listing

Data to be used in the listing. Subset to variables that best portray why the data were deleted. Selected variables should be source variables if possible

title

Title to describe each unique listing in the report. Usually closely resembles DELFNC

...

additional arguments passed to reporter::create_table()

Value

A deletion report object that includes all added listings and their titles of class "table_spec" & "list"

Examples

if (FALSE) { # \dontrun{

 # Add tables to the report

del_report <- del_report %>%
 add_listing_to_report(
   listing_table(
     pk_delimp_mod  %>%
       filter(DELFN == 5, DVID == 2) %>%
       arrange(STUDYID, USUBJID, DTTM) %>%
       select(ROW,USUBJID, VISIT, PCTPT, PCTESTCD, PCSTAT),
     "Compound A (ng/mL), Sample Not Done / Not Recorded"
   ) %>%
     define(VISIT, label = "Cool New Visit Label", width = 0.15, id_var = TRUE, align = "left")
 )  %>%
 add_listing_to_report(
   listing_table(
     pk_delimp_mod %>%
       filter(DELFN == 5, DVID == 3) %>%
       arrange(STUDYID, USUBJID, DTTM) %>%
       select(ROW,USUBJID, VISIT, PCTPT, PCTESTCD, PCSTAT),
     "Compound B (ng/mL), Sample Not Done / Not Recorded"
   ))


} # }