as.problem: Parse the Run Record

View source: R/runrecord.R

as.problemR Documentation

Parse the Run Record

Description

Parses the run record portion of a problem statement in a NONMEM model. stores it as an attribute of the problem statement. See https://github.com/UUPharmacometrics/PsN/releases/download/4.9.0/runrecord_userguide.pdf.

Usage

as.problem(x, ...)

Arguments

x

character

...

passed arguments

See Also

Other problem: problem.character(), problem.numeric(), problem_(), problem()

Examples

x <- 
'$PROB Simpraz - full data set
;; 1. Based on: 1
;; 2. Description:
;;    Added an OMEGA BLOCK(2) for CL and V
;; 3. Label:
;;    Basic model
;; 4. Structural model:
;;    One compartment linear model
;; 5. Covariate model:
;;    No covariates
;; 6. Interindividual variability:
;;    CL, V and KA. BLOCK(2) for CL and V
;; 7. Interoccasion variability:
;; 8. Residual variability:
;;    Proportional
;; 9. Estimation:
;;    FO'
con <- textConnection(x)
y <- readLines(con)
close(con)
z <- as.problem(y)
at <- attr(z,'problem')
names(at)
z

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