Learn R Programming

nonmemica (version 0.9.1)

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

x

object of dispatch

...

dots

pattern

pattern to identify record declarations

head

subpattern to identify declaration type

tail

subpattern remaining

parse

whether to convert thetas omegas and sigmas to inits and tables to items

Value

model

list

Methods (by class)

  • character: character method

See Also

Other as.model: [.model, [[.model, as.model.numeric, read.model, write.model

Other as.model: [.model, [[.model, as.model.numeric, read.model, write.model

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