as.model: Coerce to NONMEM Control Object
Description
Coerces to NONMEM control stream object.
Coerce character to model
Coerces chacter to model.
Usage
as.model(x, ...)# S3 method for character
as.model(x, pattern = "^\\s*\\$(\\S+)(\\s.*)?$",
head = "\\1", tail = "\\2", parse = TRUE, ...)
Arguments
pattern
pattern to identify record declarations
head
subpattern to identify declaration type
parse
whether to convert thetas omegas and sigmas to inits and tables to items
Examples
Run this code# NOT RUN {
library(magrittr)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% as.model
# }
Run the code above in your browser using DataLab