This function creates a pharmacokinetic concentration dataset from the provided ADNCA data.
Usage
format_pkncaconc_data(
ADNCA,
group_columns,
time_column = "AFRLT",
route_column = "ROUTE",
dosno_column = "DOSNO"
)
Arguments
- ADNCA
A data frame containing the ADNCA data.
- group_columns
A character vector specifying the columns to group by.
- time_column
A character string specifying the time column.
- route_column
A character string specifying the route column.
- dosno_column
A character string specifying the dose number column.
Details
The function performs the following steps:
Groups the data by groups_column.
Arranges the data by time_column.
Adds a 'TIME' column.
Adds a 'std_route' column taking values "intravascular" or "extravascular".
Adds an index column ('IX') 1:n within each group of length n.
Arranges the data by group_columns.