encToInt: Converts a character vector to an integer vector

Description Usage Arguments Value See Also Examples

View source: R/encoding.R

Description

Conversion of character vector to integer vector. The encoding of the character vector can be specified but defaults to the current locale.

Usage

1
encToInt(x, encoding = localeToCharset())

Arguments

x

Character vector

encoding

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

Value

An integer vector

See Also

iconv()

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

Examples

1
encToInt("\\xfa")

surveydata documentation built on July 20, 2017, 1:04 a.m.