Learn R Programming

tidypmc (version 2.0)

pmc_table: Convert table nodes to tibbles

Description

Convert PubMed Central table nodes into a list of tibbles

Usage

pmc_table(doc)

Value

a list of tibbles

Arguments

doc

xml_document from PubMed Central

Author

Chris Stubben

Examples

Run this code
# 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]])

Run the code above in your browser using DataLab