readTabular: Reproduction of the readTabular from the tm package

Description Usage Arguments Value

Description

Return a function which reads in a text document from a tabular data structure (like a data frame or a list matrix) with knowledge about its internal structure and possible available metadata as specified by a so-called mapping.

Usage

1
readTabular(mapping)

Arguments

mapping

A named list of characters. The constructed reader will map each character entry to the content or metadatum of the text document as specified by the named list entry. Valid names include content to access the document's content, and character strings which are mapped to metadata entries.

Value

Formally this function is a function generator, i.e., it returns a function (which reads in a text document) with a well-defined signature, but can access passed over arguments (e.g., the mapping) via lexical scoping.


JSmith146/CoRpEx documentation built on May 17, 2019, 10:11 p.m.