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 © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010