This function creates a pharmacokinetic dose dataset from the provided concentration data.
format_pkncadose_data(
pkncaconc_data,
time_column = "AFRLT",
rrlt_column = "ARRLT",
group_columns
)A data frame containing the dose data.
A data frame containing the concentration data.
A character string specifying the time from first dose column.
A character string specifying the time since last dose column.
A character vector specifying the columns to group by.
The function performs the following steps:
Arranges and groups the data by group_columns
Selects the first row within each group (arranged by DOSNOA- a variable created
in format_pkncaconc_data)
Note*: This function is designed to work with the output of format_pkncaconc_data.