Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

inventory

Check whether all required parameters needed in a model are present in an object


Description

Check whether all required parameters needed in a model are present in an object

Usage

inventory(x, obj, ..., .strict = FALSE)

Arguments

x

model object

obj

data.frame to pass to idata_set or data_set

...

capture dplyr-style parameter requirements

.strict

whether to stop execution if all requirements are present (TRUE) or just warn (FALSE); see details

Details

If parameter requirements are not explicitly stated, the requirement defaults to all parameter names in x. Note that, by default, the inventory is not .strict unless the user explicitly states the parameter requirement. That is, if parameter requirements are explicitly stated, .strict will be set to TRUE if a value .strict was not passed in the call.

Value

original mrgmod

Examples

## Not run: 
inventory(mod, idata, CL:V) # parameters defined, inclusively, CL through Volume 
inventory(mod, idata, everything()) # all parameters
inventory(mod, idata, contains("OCC")) # all parameters containing OCC
inventory(mod, idata, -F) # all parameters except F

## End(Not run)

mrgsolve

Simulate from ODE-Based Models

v0.11.1
GPL (>= 2)
Authors
Kyle T Baron [aut, cre] (<https://orcid.org/0000-0001-7252-5656>), Bill Gillespie [ctb], Charles Margossian [ctb], Devin Pastoor [ctb], Bill Denney [ctb] (<https://orcid.org/0000-0002-5759-428X>), Dilawar Singh [ctb], Felicien Le Louedec [ctb] (<https://orcid.org/0000-0003-3699-2729>), Timothy Waterhouse [ctb] (<https://orcid.org/0000-0002-0954-9660>), Metrum Research Group [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.