This function is typically not needed by end users.
Usage
nlmixr_data_simplify(
data,
object,
table = list(),
directory = file.path(targets::tar_config_get("store"), "user/nlmixr2")
)Arguments
- data
nlmixr data
- object
Either an
nlmixrui object (e.g. the output of runningnlmixr(object = model)) or a character md5 hash identifying a simplified ui in thenlmixr2targetsindirect cache (the form used in targets generated bytar_nlmixr()).- table
The output table control object (like `tableControl()`)
- directory
Cache directory to load the simplified
nlmixruifrom. Defaults tofile.path(targets::tar_config_get("store"), "user/nlmixr2"), mirroring the convention used bytargets' ownstore = targets::tar_config_get("store")defaults — the path resolves at call time against whatever store the user has configured for the runningtar_make()(e.g. atempdir()location set viatargets::tar_config_set()).
Value
The data with the nlmixr2 column lower case and on the left and the covariate columns on the right and alphabetically sorted.
Details
The standardization keeps columns that rxode2 and nlmixr2 use along with the covariates. Column order is standardized (rxode2 then nlmixr2 then alphabetically sorted covariates), and rxode2 and nlmixr2 column names are converted to lower case.
See also
Other Simplifiers:
nlmixr_object_complicate(),
nlmixr_object_simplify()