
Test whether an object is a doseprop_stats container
Source: R/doseprop_stats_class.R
is_doseprop_stats.RdPredicate 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).
Arguments
- x
Object to test.
- strict
Logical. When
TRUE, additionally runsvalidate_doseprop_stats()and returnsFALSEon validation failure. DefaultFALSE(class-tag check only, cheap).
See also
Other dose proportionality:
df_doseprop(),
plot_build_doseprop(),
plot_doseprop(),
plot_doseprop_theme()
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