This function is called by mrgsim. Users may also call this function to pre-validate data when the same data set is used for repeated simulation.
valid_data_set(x, m = NULL, verbose = FALSE, quiet = FALSE)
valid_data_set.matrix(x, verbose = FALSE)
data.frame or matrix
a model object
logical
if TRUE
, messages will be suppressed
A matrix with non-numeric columns dropped; if x is a
data.frame with character cmt
column comprised of valid
compartment names and m
is a model object,
the cmt
column will be converted to the corresponding
compartment number.