pmc_table {tidypmc} | R Documentation |
Convert table nodes to tibbles
Description
Convert PubMed Central table nodes into a list of tibbles
Usage
pmc_table(doc)
Arguments
doc |
|
Value
a list of tibbles
Note
Saves the caption and footnotes as attributes and collapses multiline headers, expands all rowspan and colspan attributes and adds subheadings to column one.
Author(s)
Chris Stubben
Examples
# doc <- pmc_xml("PMC2231364")
doc <- xml2::read_xml(system.file("extdata/PMC2231364.xml",
package = "tidypmc"
))
x <- pmc_table(doc)
sapply(x, dim)
x
attributes(x[[1]])
[Package tidypmc version 1.7 Index]