powered by
Conversion of character vector to integer vector. The encoding of the character vector can be specified but defaults to the current locale.
encToInt(x, encoding = localeToCharset())
Character vector
A character string describing the encoding of x. Defaults to the current locale. See also iconvlist()
iconvlist()
An integer vector
iconv()
Other Functions to clean data: fix_common_encoding_problems, fix_levels_01_spss, has_dont_know, intToEnc, leveltest, remove_all_dont_know, remove_dont_know
fix_common_encoding_problems
fix_levels_01_spss
has_dont_know
intToEnc
leveltest
remove_all_dont_know
remove_dont_know
# NOT RUN { encToInt("\\xfa") # }
Run the code above in your browser using DataLab