Learn R Programming

nonmemica (version 1.0.8)

as.model.character: Coerce character to model

Description

Coerces chacter to model.

Usage

# S3 method for character
as.model(
  x,
  pattern = "^\\s*\\$(\\S+)(\\s.*)?$",
  head = "\\1",
  tail = "\\2",
  parse = TRUE,
  ...
)

Value

list

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

See Also

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

Examples

Run this code
library(magrittr)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% as.model

Run the code above in your browser using DataLab