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

pander_table(x, ...)

pander_table_df(x)

Arguments

x

a spec object

...

passed to other functions

Examples

spec <- load_spec_ex() pander_table_df(spec)
#> # A tibble: 62 x 4 #> Column Type Field Value #> <chr> <chr> <chr> <chr> #> 1 "C" "character" short-name commented row indicator #> 2 "" "" values ., C #> 3 "" "" long-name commented rows #> 4 "USUBJID" "character" short-name USUBJID #> 5 "" "" long-name universal subject identifier #> 6 "ID" "numeric" short-name ID #> 7 "" "" long-name NONMEM ID number #> 8 "EVID" "numeric" short-name event ID #> 9 "" "" long-name event ID indicator #> 10 "" "" comment per NONMEM specifications #> # … with 52 more rows
pander_table(spec)
#> Loading required namespace: pander
#> [1] "\n----------------------------------------------------------------------\nColumn Type Field Value \n--------- ----------- ------------ -----------------------------------\nC character short-name commented row indicator \n\n values ., C \n\n long-name commented rows \n\nUSUBJID character short-name USUBJID \n\n long-name universal subject identifier \n\nID numeric short-name ID \n\n long-name NONMEM ID number \n\nEVID numeric short-name event ID \n\n long-name event ID indicator \n\n comment per NONMEM specifications \n\nMDV numeric short-name MDV \n\n long-name missing DV indicator \n\n comment per NONMEM specifications \n\nSEQ numeric short-name SEQ \n\n values 1 = concentration, 2 = response, \n 3 = other \n\n long-name record type indicators \n\nAMT numeric short-name amount \n\n unit mg \n\n range 0 to 1000 \n\n long-name dose amount \n\nII numeric short-name II \n\n unit hours \n\n long-name interdose interval \n\nCMT numeric short-name Compartment \n\n values 1, 2, 3, 4 \n\n long-name compartment number \n\n comment per NONMEM specifications \n\nTAFD numeric short-name TAFD \n\n unit hours \n\n long-name time after first dose \n\nWT numeric short-name Weight \n\n unit kg \n\n range 40 to 100 \n\n long-name baseline weight \n\nEGFR numeric short-name eGFR \n\n unit ml/min/1.73m2 \n\n range 10 to 300 \n\n long-name estimated glomerular filtration \n rate \n\nSTUDY character short-name Study \n\n values 100 = The first phase 1 study, \n 202 = The first phase 2 study \n conducted only at sites 1, 2, 3 \n when the formulation was still \n oral liquid only, 303 = The renal \n impairment study, 203 = The \n second phase 2 study \n\n long-name study identifier \n\nSEX numeric short-name SEX \n\n values 0 = male, 1 = female \n\nBQL numeric short-name below limit of quantification \n\n values 0 = FALSE, 1 = TRUE \n\n long-name DV value is below the \n quantitation limit \n\nDV numeric short-name DV \n\n unit ng/mL \n\n long-name dependent variable \n\n comment see SEQ \n\nDV2 numeric short-name DV2 \n\n long-name second dependent variable \n\nHAIR character short-name HAIR \n\n values 0 = brown, 1 = blonde, 2 = black \n\n long-name patient hair color \n\nCLCR numeric short-name creatinine clearance \n\n unit ml/min \n\n range 40 to 180 \n\nALB numeric short-name adjusted albumin \n\n unit g/dL \n\n range 1 to 5 \n\n comment in the lookup document as ALB2 \n----------------------------------------------------------------------\n\n"