Converts pk_parameters df into gt table for printing

tabulate_pk_parameters(
  data,
  id_col,
  dose_col,
  conc_col,
  ntime_col,
  group_col = NULL,
  decimals = 2,
  title = NULL,
  ...
)

Arguments

data

A data frame containing C-QT analysis dataset

id_col

An unquoted column name for subject ID

dose_col

An unquoted column name for dose measurements

conc_col

An unquoted column name for drug concentration measurements

ntime_col

An unquoted column name for nominal time since dose

group_col

An unquoted column name for additional grouping column

decimals

Number of decimals to format the table to (default: 2, format for N is 0 decimals)

title

Optional title for the table, it will be wrapped in gt::md()

...

Optional additional arguments to gt::tab_options

Value

a gt table

Examples

data_proc <- preprocess(cqtkit_data_verapamil)

tabulate_pk_parameters(data_proc %>% dplyr::filter(DOSE != 0), ID, DOSE, CONC, NTLD)
Dose Group N Tmax Median (min, max) Cmax geometric mean (%CV) Cmax Median (min, max)
120.00 21 1.00 (0.50, 2.00) 114.23 (57.00) 102.00 (39.50, 368.00)