Learn R Programming

mrgsolve (version 0.8.9)

update: Get all names from a model object.

Description

Get all names from a model object.

After the model object is created, update various attributes.

Usage

# S4 method for mrgmod
names(x)

# S4 method for mrgmod update(object, ..., merge = TRUE, open = FALSE, data = list())

# S4 method for omegalist update(object, y, ...)

# S4 method for sigmalist update(object, y, ...)

# S4 method for parameter_list update(object, y, ...)

# S4 method for ev update(object, y, ...)

Arguments

x

the model object

object

a model object

...

passed to other functions

merge

logical indicating to merge (rather than replace) new and existing attributes.

open

logical; used only when merge is TRUE and parameter list or initial conditions list is being updated; if FALSE, no new items will be added; if TRUE, the parameter list may expand.

data

a list of items to update; not used for now

y

another object involved in update

Value

The updated model object is returned.

Examples

Run this code
# NOT RUN {
mod <- mrgsolve:::house()
names(mod)

# }
# NOT RUN {
 mod <- mrgsolve:::house()

 mod <- update(mod, end=120, delta=4, param=list(CL=19.1))
 
# }

Run the code above in your browser using DataLab