columnOf | R Documentation |
columnOf(node, cols = getColPositions(xmlParent(node)))
node |
the XML node whose column is to be identified |
cols |
the positions of the columns on the page, i.e., where each column starts. These are calculated from the node's page. However it can be useful to specify the values either from contextual knowledge or by precomputing them to avoid repeating this calculation each time, or to customize the calculations of these positions. |
An integer vector.
Duncan Temple Lang
doc = readPDFXML(system.file("samples/3Column.xml", package = "ReadPDF"))
library(XML)
getNodeSet(doc, "//text[contains(., 'Column')]")
nodes = getNodeSet(doc, "//text[contains(., 'Column')]")
sapply(nodes, columnOf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.