This function is a simple way to compute the number
of sub-nodes (or children) an
It is provided as a convenient form of calling the
## S3 method for class 'XMLNode' length(x)
An integer giving the number of sub-nodes of this node.
Duncan Temple Lang
doc <- xmlTreeParse(system.file("exampleData", "mtcars.xml", package="XML")) r <- xmlRoot(doc, skip=TRUE) length(r) # get the last entry r[[length(r)]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.