as.model.character: Coerce character to model

View source: R/model.R

as.model.characterR 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

bergsmat/nonmemica documentation built on Sept. 15, 2023, 9:22 a.m.