[R] Using read.table to read file created with read.table and qmethod = "escape"
Hadley Wickham
hadley at rice.edu
Thu Apr 8 15:07:38 CEST 2010
> df <- data.frame(a = "a\"b", v = 4, z = "this is Z")
> write.csv(df, "test.csv", row.names = FALSE, quote = FALSE)
> read.csv("test.csv", quote = "")
Unfortunately my real example is more like:
df <- data.frame(a = "a\"b", v = 4, z = "this is: A, B, C")
so quote = F won't work.
Can write.table and read.table really be so asymmetric?
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-help
mailing list