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, fixLevels01, fixLevels01R, fixLevels01SPSS, hasDK, intToEnc, leveltestR, leveltestSPSS, removeAllDK, removeDK

Examples

1
encToInt("\\xfa")

surveydata documentation built on May 29, 2017, 9:07 p.m.

Search within the surveydata package
Search all R packages, documentation and source code