Skip to content
Prev 200083 / 398506 Next

XML: Reading transition matrices into R

stefan.duke at gmail.com wrote:
trans = apply(xx, 1, function(x) {
                       tr = newXMLNode("transition")
                       mapply(newXMLNode, names(x), x, MoreArgs = list(parent = tr))
                       tr
                     })
top = newXMLNode("transitionmatrix", .children = trans)
saveXML(top, "newTransition.xml")
0<
ro
ro
rc
om