Conditionally Verify and Override PK Parameters Based on Sample Type
Source:R/format_data.R
verify_parameters.RdThis helper function updates a PKNCA intervals data frame by verifying and overriding
specific pharmacokinetic parameters depending on whether the sample is identified
as excreta (e.g., urine, feces, bile). Parameters related to excretion
(such as ae, fe, and those starting with "clr.") are selectively enabled
only for excreta samples and set to FALSE otherwise.
Arguments
- pknca_intervals
A data frame containing PKNCA interval information, including pharmacokinetic parameters and a
PCSPECcolumn that describes the specimen type.- params
A character vector of parameter names selected by the user. Only these parameters will remain
TRUEfor excreta types.- all_pknca_params
A character vector of all pharmacokinetic parameters that may be present in
pknca_intervals. These will be checked and updated accordingly.