Skip to contents

[Stable]

Usage

h_pkparam_sort(pk_data, key_var = "PARAMCD")

Arguments

pk_data

(data.frame)
Pharmacokinetics dataframe

key_var

(character)
key variable used to merge pk_data and metadata created by d_pkparam()

Value

dataframe with PK PARAM variable ordered

Examples

library(dplyr)

adpp <- tern_ex_adpp %>% mutate(PKPARAM = factor(paste0(PARAM, " (", AVALU, ")")))
pk_ordered_data <- h_pkparam_sort(adpp)