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

Missing value imputed for time #367

Open
billdenney opened this issue Jan 20, 2025 · 0 comments · May be fixed by #376
Open

Missing value imputed for time #367

billdenney opened this issue Jan 20, 2025 · 0 comments · May be fixed by #376

Comments

@billdenney
Copy link
Owner

library(PKNCA)
#> 
#> Attaching package: 'PKNCA'
#> The following object is masked from 'package:stats':
#> 
#>     filter

d_conc <- data.frame(conc = 2^(0:-5), time = 0:5)

o_conc <- PKNCAconc(d_conc, conc~time)
all_param_names <- names(get.interval.cols())
all_params <-
  as.data.frame(
    setNames(as.list(rep(TRUE, length(all_param_names))), all_param_names)
  )
all_params$start <- 0
all_params$end <- Inf
o_data <- PKNCAdata(o_conc, intervals = all_params)
o_nca <- pk.nca(o_data)
#> No dose information provided, calculations requiring dose will return NA.
#> Warning: All concentration data are missing
#> Error in `purrr::pmap()`:
#> ℹ In index: 1.
#> Caused by error in `assert_time()`:
#> ! Please report a bug.
#> : Error with interval start=0, end=Inf: Assertion on 'time' failed: Contains missing values (element 1).

Created on 2025-01-20 with reprex v2.1.1

@billdenney billdenney linked a pull request Jan 29, 2025 that will close this issue
@billdenney billdenney linked a pull request Jan 29, 2025 that will close this issue
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