Converts a character vector to an integer vector

Share:

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")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.