tm (version 0.5-10)

prescindMeta: Prescind Document Meta Data

Description

Extracts meta data from each individual document (either stored in its attributes or in additional user-defined local meta data pairs) of a corpus and creates a data frame which contains both the global meta data information of the corpus plus the extracted (i.e., shifted up) local meta data of the individual text documents.

Usage

prescindMeta(x, meta)

Arguments

x
A corpus.
meta
A character vector of meta data names to be shifted up.

Value

  • A data frame constructed from x with shifted up meta data.

See Also

DMetaData, and meta

Examples

Run this code
data("crude")
DMetaData(crude)
meta(crude, tag = "ID", type = "local")
prescindMeta(crude, c("ID", "Heading"))

Run the code above in your browser using DataCamp Workspace