[R] Using read.table to read file created with read.table and qmethod = "escape"

Hadley Wickham hadley at rice.edu
Thu Apr 8 16:00:45 CEST 2010


On Thu, Apr 8, 2010 at 8:20 AM, jim holtman <jholtman at gmail.com> wrote:
> You were using read.csv and not read.table.  The following seems to work
> with using a separator that will probably not appear in the text:
>
>> df <- data.frame(a = "a\"b", v = 4, z = "this is: A, B, C")
>> write.table(df, "test.csv", row.names = FALSE, quote = FALSE, sep='\x01')

Perhaps it wasn't clear from my problem statement, but I already have
files saved using read.table.  And they took about 12 hours to create,
so I'd rather not have to resave them all.  I just can't believe there
is no way to read them in!

Hadley


-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-help mailing list