|
DATA MINING
Desktop Survival Guide by Graham Williams |
|
|||
Conversions |
Here's an example of reading some data from a text file and looking for non-ASCII characters. This will show the lines containing non-ASCII characters highlighted:
txt <- readLines("myfile.txt")
txt2 <- iconv(txt, "", "ASCII", sub="byte")
txt2[txt2 != txt]
|