as.model.character {nonmemica} | R Documentation |
Coerce character to model
Description
Coerces chacter to model.
Usage
## S3 method for class 'character'
as.model(
x,
pattern = "^\\s*\\$(\\S+)(\\s.*)?$",
head = "\\1",
tail = "\\2",
parse = TRUE,
...
)
Arguments
x |
character |
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, tables to items, and runrecords to fields |
... |
ignored |
Value
list
See Also
Other as.model:
[.model()
,
[[.model()
,
as.model.numeric()
,
as.model()
,
read.model()
,
write.model()
Examples
library(magrittr)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% as.model
[Package nonmemica version 1.0.8 Index]