valid_data_set | R Documentation |
This function is called by mrgsim()
and friends to check and prepare
input data sets for simulation. 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)
x |
data.frame or matrix. |
m |
a model object. |
verbose |
logical. |
quiet |
if |
An error will be issued when
non-numeric data is found in columns sharing names with model parameters
non-numeric data is found in reserved data items related to dosing
(see mrgsolve:::GLOBALS$CARRY_TRAN
)
a column is found that is "internally classed", including columns that
inherit from integer64
(see is.object()
)
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.
valid_idata_set()
, idata_set()
, data_set()
mod <- mrgsolve::house()
data(exTheoph)
d <- valid_data_set(exTheoph, mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.