Skip to content

Missing value imputed for time #367

@billdenney

Description

@billdenney
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions