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 19, 2017, 7:27 p.m.
Search within the surveydata package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.