find_xpath: Find matches for an XPath query in a corpus

Description Usage Arguments Value

Description

Find matches for an XPath query in a corpus

Usage

1
2
3
4
5
6
7
8
find_xpath(pattern,
           x,
           handlers = NULL,
           trim = TRUE,
           fun = NULL,
           final_fun = NULL,
           namespaces = NULL,
           ...) 

Arguments

pattern

an XPath query

x

a corpus

handlers

Optional collection of functions used to map the different XML nodes to R objects.

trim

whether to strip white space from the beginning and end of text strings.

fun

optional function that is to be applied to the individual matches prior to returning the result.

final_fun

optional final function that is to be applied to the complete list of matches prior to returning the result.

namespaces

optional namespaces.

...

optional additional arguments.

Value

Returns an object of the class .


wai-wong-reimagine/mclm documentation built on May 16, 2019, 9:12 p.m.