Learn R Programming

polmineR (version 0.7.5)

decode: Decode corpus or s-attribute.

Description

Decode either a corpus, or a s-attribute.

Usage

decode(.Object, ...)

# S4 method for character decode(.Object, sAttribute = NULL, verbose = TRUE)

Arguments

.Object

the corpus to decode (character vector)

...

further parameters

sAttribute

the s-attribute to decode

verbose

logical

Value

a data.table

See Also

encode

Examples

Run this code
# NOT RUN {
use("polmineR.sampleCorpus")

# Scenario 1: Decode one s-attribute
dt <- decode("PLPRBTTXT", sAttribute = "text_date")

# Scenario 2: Decode corpus entirely
dt <- decode("PLPRBTTXT")

# }

Run the code above in your browser using DataLab