xml.Extract.NM.Value: XML parser for vectors

View source: R/xml.Extract.NM.Value.r

xml.Extract.NM.ValueR Documentation

XML parser for vectors

Description

Extract XML content into a numeric vector

Usage

xml.Extract.NM.Value(x, what = "theta")

Arguments

x

The 'theta' element from NONMEM output in XML format

what

character string, like 'theta' or 'thetase'

Value

Numeric vector

See Also

nm.extract.xml

Examples

## Not run: 
library(XML)
run = "example1"
filename = "C:/nm73g64/examples/example1.xml"
top = xmlRoot(xmlTreeParse(filename))# names(top)
TMP = top[["nonmem"]][["problem"]]
TMP = TMP[grepl("estimation", names(TMP))]
len = length(TMP)
## get estimation titles
est.methods = sapply(1:length(TMP), function(x,TMP)
  xmlValue(TMP[x][["estimation"]][["estimation_title"]]), TMP = TMP)
names(TMP) = est.methods
tmp = TMP[[1]]

xml.Extract.NM.Value(asXMLNode(tmp[["theta"]]), what = "theta")
xml.Extract.NM.Value(asXMLNode(tmp[["thetase"]]), what = "theta")

## End(Not run)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.