Skip to contents

Predicate that returns TRUE if x carries the "doseprop_stats" class – i.e., it is the container returned by df_doseprop() (also accepted by plot_doseprop() and plot_build_doseprop() on the precomputed-stats fast path).

Usage

is_doseprop_stats(x, strict = FALSE)

Arguments

x

Object to test.

strict

Logical. When TRUE, additionally runs validate_doseprop_stats() and returns FALSE on validation failure. Default FALSE (class-tag check only, cheap).

Value

Logical scalar.

Examples

stats <- df_doseprop(data_sad_nca, metrics = c("aucinf.obs", "cmax"))
is_doseprop_stats(stats)             # TRUE
#> [1] TRUE
is_doseprop_stats(as.data.frame(stats))  # FALSE -- coerced to plain frame
#> [1] FALSE