Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow vector input for calc_derived_3cpt() #29

Open
billdenney opened this issue Sep 7, 2023 · 0 comments · May be fixed by #30
Open

Allow vector input for calc_derived_3cpt() #29

billdenney opened this issue Sep 7, 2023 · 0 comments · May be fixed by #30

Comments

@billdenney
Copy link
Collaborator

Here is what I was trying to do (except my real data had 26k rows):

library(pmxTools)
#> Loading required package: patchwork
mydata <-
  data.frame(
    CL = c(0.25, 0.25),
    Vcentral = c(1, 1),
    Vperiph1 = c(0.25, 0.25),
    Vperiph2 = c(0.25, 0.25),
    Qcp1 = c(0.25, 0.25),
    Qcp2 = c(0.25, 0.25),
    Ka = c(0, 0)
  )

with(
  mydata,
  calc_derived_3cpt(
    CL=CL, V1=Vcentral,
    V2=Vperiph1, Q2=Qcp1,
    V3=Vperiph2, Q3=Qcp2,
    ka=Ka,
    sigdig=Inf
  )
)
#> Error in while (tend < guess_tmax) {: the condition has length > 1

Created on 2023-09-07 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant