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') > read.table("test.csv", quote = "", sep='\x01', header=TRUE) a v z 1 a"b 4 this is: A, B, C > On Thu, Apr 8, 2010 at 9:07 AM, Hadley Wickham <had...@rice.edu> wrote: > > 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/ > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.