Get the PK parameters requested in a PKNCA interval specification
get_pk_parameters_from_pknca_options.RdThe PKNCA option single.dose.aucs (see PKNCA::PKNCA.options()) is a
data.frame with one row per NCA interval (start, end) and one logical
column per PK parameter. Wherever a parameter is set to TRUE, PKNCA will
compute it for that interval. This function returns the names of all
parameters requested for at least one interval, so that they can be made
available in the output from run_nca().
Arguments
- options
data.frame with interval specification for NCA, in the format of
PKNCA::PKNCA.options()$single.dose.aucs. IfNULL(default), the currently active PKNCA optionsingle.dose.aucsis used.- no_dots
if
TRUE, will replace any dots in parameter names (e.g.aucinf.obs) with underscores (aucinf_obs). Default isFALSE, i.e. PKNCA parameter names are returned unchanged.
Details
Only logical columns are considered parameter columns. Other columns (e.g.
start, end, impute) are ignored, regardless of their values. NA
values are treated as not requested.
Parameters are returned in order of first appearance, scanning intervals (rows) in order and, within each interval, parameter columns from left to right. Each parameter is returned only once.
The result depends only on options. When options is NULL, the
currently active PKNCA options are used, i.e.
PKNCA::PKNCA.options()$single.dose.aucs, so calling the function with
NULL or with that value explicitly gives identical results. Note that
run_nca() restores the PKNCA options on exit, so calling run_nca() does
not change the result of a later call with options = NULL.