Last active
February 17, 2023 16:17
-
-
Save shanmdphd/2856c65dc94335eeb738c11f49f2b59c to your computer and use it in GitHub Desktop.
Minimal reproducible example: proper input of the `dose` argument in tblNCA function in NonCompart R package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(NonCompart) | |
tblNCA(Theoph, | |
dose = Theoph %>% | |
mutate(actual_dose = Wt*Dose) %>% | |
select(Subject, actual_dose) %>% | |
unique() %>% | |
.$actual_dose) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment