Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

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]



Copyright © 2004-2008 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
PDF version is properly formatted and forms a comprehensive book (draft with over 600 pages).
Brought to you by Togaware.