Learn R Programming

polmineR (version 0.6.1)

adjustEncoding: adjust encoding

Description

Utility method to help making sure that the encoding of a character string or the relevant parts of an object conform to the encoding to the corpus.

adjustEncoding-method

Usage

adjustEncoding(.Object, ...)
"adjustEncoding"(.Object, corpusEncoding)
as.utf8(.Object, ...)
"as.utf8"(.Object, from = "latin1")

Arguments

.Object
the object (usually a character vector, nothing else is implemented so far)
...
further parameters
corpusEncoding
the encoding of the corpus (e.g. "latin1")
from
encoding