Requires the xtable package to be installed. pander_table_df actually formats the table.

x_table(x, ...)

x_table_long(x, ...)

Arguments

x

a yspec object

...

not used

Examples

spec <- load_spec_ex()

x_table(spec)
#>  [1] "\\begin{longtable}{|>{\\raggedright\\arraybackslash}p{1in}|>{\\raggedright\\arraybackslash}p{0.65in}|>{\\raggedright\\arraybackslash}p{0.95in}>{\\raggedright\\arraybackslash}p{2.4in}|}"                                                     
#>  [2] "  \\hline"                                                                                                                                                                                                                                    
#>  [3] "Column & Type & Field & Value \\\\ "                                                                                                                                                                                                          
#>  [4] "  \\hline"                                                                                                                                                                                                                                    
#>  [5] "\\endhead"                                                                                                                                                                                                                                    
#>  [6] "\\hline"                                                                                                                                                                                                                                      
#>  [7] "\\multicolumn{4}{l}{\\footnotesize Continued on next page}"                                                                                                                                                                                   
#>  [8] "\\endfoot"                                                                                                                                                                                                                                    
#>  [9] "\\endlastfoot"                                                                                                                                                                                                                                
#> [10] " \\hline"                                                                                                                                                                                                                                     
#> [11] "C & character & short-name & commented row indicator \\\\ "                                                                                                                                                                                   
#> [12] "   &  & values & ., C \\\\ "                                                                                                                                                                                                                  
#> [13] "   &  & long-name & commented rows \\\\ "                                                                                                                                                                                                     
#> [14] "   \\hline"                                                                                                                                                                                                                                   
#> [15] "USUBJID & character & short-name & USUBJID \\\\ "                                                                                                                                                                                             
#> [16] "   &  & long-name & universal subject identifier \\\\ "                                                                                                                                                                                       
#> [17] "   \\hline"                                                                                                                                                                                                                                   
#> [18] "ID & numeric & short-name & ID \\\\ "                                                                                                                                                                                                         
#> [19] "   &  & long-name & NONMEM ID number \\\\ "                                                                                                                                                                                                   
#> [20] "   \\hline"                                                                                                                                                                                                                                   
#> [21] "EVID & numeric & short-name & event ID \\\\ "                                                                                                                                                                                                 
#> [22] "   &  & long-name & event ID indicator \\\\ "                                                                                                                                                                                                 
#> [23] "   &  & comment & per NONMEM specifications \\\\ "                                                                                                                                                                                            
#> [24] "   \\hline"                                                                                                                                                                                                                                   
#> [25] "MDV & numeric & short-name & MDV \\\\ "                                                                                                                                                                                                       
#> [26] "   &  & long-name & missing DV indicator \\\\ "                                                                                                                                                                                               
#> [27] "   &  & comment & per NONMEM specifications \\\\ "                                                                                                                                                                                            
#> [28] "   \\hline"                                                                                                                                                                                                                                   
#> [29] "SEQ & numeric & short-name & SEQ \\\\ "                                                                                                                                                                                                       
#> [30] "   &  & values & 1  =  concentration, 2  =  response, 3  =  other \\\\ "                                                                                                                                                                      
#> [31] "   &  & long-name & record type indicators \\\\ "                                                                                                                                                                                             
#> [32] "   \\hline"                                                                                                                                                                                                                                   
#> [33] "AMT & numeric & short-name & amount \\\\ "                                                                                                                                                                                                    
#> [34] "   &  & unit & mg \\\\ "                                                                                                                                                                                                                      
#> [35] "   &  & range & 0 to 1000 \\\\ "                                                                                                                                                                                                              
#> [36] "   &  & long-name & dose amount \\\\ "                                                                                                                                                                                                        
#> [37] "   \\hline"                                                                                                                                                                                                                                   
#> [38] "II & numeric & short-name & II \\\\ "                                                                                                                                                                                                         
#> [39] "   &  & unit & hours \\\\ "                                                                                                                                                                                                                   
#> [40] "   &  & long-name & interdose interval \\\\ "                                                                                                                                                                                                 
#> [41] "   \\hline"                                                                                                                                                                                                                                   
#> [42] "CMT & numeric & short-name & Compartment \\\\ "                                                                                                                                                                                               
#> [43] "   &  & values & 1, 2, 3, 4 \\\\ "                                                                                                                                                                                                            
#> [44] "   &  & long-name & compartment number \\\\ "                                                                                                                                                                                                 
#> [45] "   &  & comment & per NONMEM specifications \\\\ "                                                                                                                                                                                            
#> [46] "   \\hline"                                                                                                                                                                                                                                   
#> [47] "TAFD & numeric & short-name & TAFD \\\\ "                                                                                                                                                                                                     
#> [48] "   &  & unit & hours \\\\ "                                                                                                                                                                                                                   
#> [49] "   &  & long-name & time after first dose \\\\ "                                                                                                                                                                                              
#> [50] "   \\hline"                                                                                                                                                                                                                                   
#> [51] "WT & numeric & short-name & Weight \\\\ "                                                                                                                                                                                                     
#> [52] "   &  & unit & kg \\\\ "                                                                                                                                                                                                                      
#> [53] "   &  & range & 40 to 100 \\\\ "                                                                                                                                                                                                              
#> [54] "   &  & long-name & baseline weight \\\\ "                                                                                                                                                                                                    
#> [55] "   \\hline"                                                                                                                                                                                                                                   
#> [56] "EGFR & numeric & short-name & eGFR \\\\ "                                                                                                                                                                                                     
#> [57] "   &  & unit & ml/min/1.73m2 \\\\ "                                                                                                                                                                                                           
#> [58] "   &  & range & 10 to 300 \\\\ "                                                                                                                                                                                                              
#> [59] "   &  & long-name & estimated glomerular filtration rate \\\\ "                                                                                                                                                                               
#> [60] "   \\hline"                                                                                                                                                                                                                                   
#> [61] "STUDY & character & short-name & Study \\\\ "                                                                                                                                                                                                 
#> [62] "   &  & values & 100  =  The first phase 1 study, 202  =  The first phase 2 study conducted only at sites 1, 2, 3 when the formulation was still oral liquid only, 303  =  The renal impairment study, 203  =  The second phase 2 study \\\\ "
#> [63] "   &  & long-name & study identifier \\\\ "                                                                                                                                                                                                   
#> [64] "   \\hline"                                                                                                                                                                                                                                   
#> [65] "SEX & numeric & short-name & SEX \\\\ "                                                                                                                                                                                                       
#> [66] "   &  & values & 0  =  male, 1  =  female \\\\ "                                                                                                                                                                                              
#> [67] "   \\hline"                                                                                                                                                                                                                                   
#> [68] "BQL & numeric & short-name & below limit of quantification \\\\ "                                                                                                                                                                             
#> [69] "   &  & values & FALSE, TRUE \\\\ "                                                                                                                                                                                                           
#> [70] "   &  & long-name & DV value is below the quantitation limit \\\\ "                                                                                                                                                                           
#> [71] "   \\hline"                                                                                                                                                                                                                                   
#> [72] "DV & numeric & short-name & DV \\\\ "                                                                                                                                                                                                         
#> [73] "   &  & unit & ng/mL \\\\ "                                                                                                                                                                                                                   
#> [74] "   &  & long-name & dependent variable \\\\ "                                                                                                                                                                                                 
#> [75] "   &  & comment & see SEQ \\\\ "                                                                                                                                                                                                              
#> [76] "   \\hline"                                                                                                                                                                                                                                   
#> [77] "DV2 & numeric & short-name & DV2 \\\\ "                                                                                                                                                                                                       
#> [78] "   &  & long-name & second dependent variable \\\\ "                                                                                                                                                                                          
#> [79] "   \\hline"                                                                                                                                                                                                                                   
#> [80] "HAIR & character & short-name & HAIR \\\\ "                                                                                                                                                                                                   
#> [81] "   &  & values & 0  =  brown, 1  =  blonde, 2  =  black \\\\ "                                                                                                                                                                                
#> [82] "   &  & long-name & patient hair color \\\\ "                                                                                                                                                                                                 
#> [83] "   \\hline"                                                                                                                                                                                                                                   
#> [84] "CLCR & numeric & short-name & creatinine clearance \\\\ "                                                                                                                                                                                     
#> [85] "   &  & unit & ml/min \\\\ "                                                                                                                                                                                                                  
#> [86] "   &  & range & 40 to 180 \\\\ "                                                                                                                                                                                                              
#> [87] "   \\hline"                                                                                                                                                                                                                                   
#> [88] "ALB & numeric & short-name & adjusted albumin \\\\ "                                                                                                                                                                                          
#> [89] "   &  & unit & g/dL \\\\ "                                                                                                                                                                                                                    
#> [90] "   &  & range & 1 to 5 \\\\ "                                                                                                                                                                                                                 
#> [91] "   &  & comment & in the lookup document as ALB2 \\\\ "                                                                                                                                                                                       
#> [92] "  \\hline"                                                                                                                                                                                                                                    
#> [93] "\\end{longtable}"