TEIdy: Load an XML document as a data.frame

Description Usage Arguments Value Examples

Description

Load an XML document as a data.frame

Usage

1
TEIdy(fname, ignore = c(), discard = c(), keep = c())

Arguments

fname

A filename

ignore

Tags that, when encountered, will not be added as columns to the tidy representation. Data inside these tags will be kept, but the tag will not be column.

discard

Tags that, when encountered, will be discarded from the tidy representation. discard='teiHeader', for example, will prevent header information from being included.

keep

Tags to *keep* in the tidy representation. If this is used, 'ignore' and 'discard' arguments will apply only inside tags defined by keep.

Value

A tibble, with a 'text' column indicating the lowest of text address found in the document.

Examples

1
2
tomorrow = system.file("extdata", "Tomorrow_and_tomorrow.xml", package="TEIdy")
TEIdy(tomorrow)

HumanitiesDataAnalysis/TEIdy documentation built on May 11, 2019, 7:25 p.m.