[R] Errors reading data file?

Chris Bergstresser chris at subtlety.com
Fri Mar 11 02:11:08 CET 2005


Hi all --

    I tried loading a data file with the following command:

 > data = read.table("filename.txt", header = TRUE, sep = ",")

    This appeared to work fine, except it silently skipped 400 records 
(out of 1200).  It turns out, some of the text fields included quotes, 
and I needed to use 'quote = ""'.
    Why wasn't there an error message?  Is there some way to enable one?

-- Chris




More information about the R-help mailing list