xml_text_first: Extract first xml text

Description Usage Arguments Value Functions Examples

View source: R/xml_text_first.R

Description

Extract first xml text

Usage

1
2
3
xml_text_first(nodes, xpath)

xml_attr_first(nodes, xpath, attr)

Arguments

nodes

article node set with PMID names

xpath

xml node name

attr

xml attribute name

Value

A vector. Used by pubmed_table to add additional columns

Functions

Examples

1
2
aq <- pubmed_nodeset(aqc)
xml_text_first(aq, "//Author/LastName")

cstubben/tidypubmed documentation built on March 26, 2020, 7:36 a.m.