Produces a subject-level listing of individual NCA parameter values from a PKanalix project, one row per subject, with the selected (or all) NCA parameters as columns. Supports covariate stratification/sorting, covariate/ID filtering, per-parameter rounding, and (custom) aliases/units.
Usage
listingNCAParameters(projectFile = NULL,
splitCovariates = NULL,
selectParameters = NULL,
filterCovariates = NULL,
filterIds = NULL,
roundDigits = 3,
roundMethod = c("monolixSuiteRounding", "significantFigures", "significantFiguresPreserved", "none"),
roundByParameter = NULL,
units = TRUE,
aliases = TRUE,
customUnits = NULL,
customAliases = NULL,
mock = FALSE)
Arguments
-
projectFile(character) Path to a PKanalix project file (.pkx). IfNULL(default), uses the currently loaded project. -
splitCovariates(character) Categorical covariates (type"catcov") to include and sort by. If specified, the table is sorted by these covariates in the order provided, placed to the left ofid. IfNULL(default), none are added (stratification-only / additional-stratification categorical covariates defined in the project are still merged in automatically). -
selectParameters(character) NCA parameters to include. IfNULL(default), all computed NCA parameters are included. -
filterCovariates(list) Named list of categorical covariates → allowed values, e.g.list(SEX = "Male", DOSE = c("100","200")). Non-matching rows are dropped. IfNULL(default), no covariate filtering is applied. -
filterIds(character/numeric) Subject IDs to include. IfNULL(default), no ID filtering is applied. -
roundDigits(integer) Number of decimal places for rounding (default3). -
roundMethod(character) How numeric values are rounded.roundDigitscontrols the number of digits in each case. Options:-
"monolixSuiteRounding"(default) - Mirrors MonolixSuite display. The integer part is kept exactly as-is, and only the fractional part is rounded toroundDigitssignificant figures. Small values (< 1) automatically get more decimal places. -
"significantFigures"- Standard significant-figures rounding: the value is rounded toroundDigitstotal significant digits, zeroing non-significant digits before the decimal for large numbers. -
"significantFiguresPreserved"- Like"significantFigures", but never zeroes digits before the decimal. Once the integer part already has at leastroundDigitsdigits, the value is simply rounded to the nearest whole number instead of being zeroed out. -
"none"- No rounding; values are returned as-is.
-
-
roundByParameterOptional per-parameter rounding overrides on top of the global settings, either a named numeric vector of digits (c(Cmax = 2, AUClast = 4)) or a 3-column data frame (parameter,digits,method). Unlisted parameters keep global settings (defaultNULL). -
units(logical) IfTRUE(default), parameter units are added to column names. -
aliases(logical) IfTRUE(default), parameter names are replaced with their aliases. -
customUnits(character / data.frame) Named vector or 2-column data frame mapping parameters → custom unit labels, e.g.c(Cmax = "ng/mL", AUClast = "h*ng/mL"). Overrides units from the PKanalix project. -
customAliases(character / data.frame) Named vector or 2-column data frame mapping parameters → custom alias labels, e.g.c(Cmax = "C[[sub:max]]", AUClast = "AUC[[sub:0-tlast]]"). Overrides project aliases. Supports[[sub:…]],[[sup:…]],~italic~. -
mock(logical) IfTRUE, masks values for documentation/examples:id→"id1", occasions →"occ1", categorical / stratification covariates →"Category 1", and all numeric columns (continuous covariates, NCA parameter values) →"xx.xx". DefaultFALSE.
Returns: A data frame with one row per subject, containing the id column, the splitCovariates (if specified, placed to the left of id), any stratification-only / additional-stratification categorical covariates (merged in automatically when defined in the project), and the selected (or all) NCA parameter columns, with names formatted per units/aliases.
Examples