Learn R Programming

surveydata (version 0.2.0)

fixCommonEncodingProblems: Fix common encoding problems when working with web imported data.

Description

This function tries to resolve typical encoding problems when importing web data on Windows. Typical problems occur with pound and hyphen (-), especially when these originated in MS-Word.

Usage

fixCommonEncodingProblems(x, encoding = localeToCharset())

Arguments

x

A character vector

encoding

A character string describing the encoding of x. Defaults to the current locale. See also iconvlist()

See Also

Other Functions to clean data: encToInt, fixLevels01R, fixLevels01SPSS, fixLevels01, hasDK, intToEnc, leveltestR, leveltestSPSS, removeAllDK, removeDK