David Winsemius <dwinsem...@comcast.net> 12-Dec-09 17:12:
>  > txt <- gsub("( [A-Za-z]+),","\\1;",readLines("file.csv"))
>  > read.csv(textConnection(txt), header=TRUE)
>    var1                           var2  var3
> 1  one                            two three
> 2  one this is a comment;with commas. three

Wonderful, thanks a lot!

Marianne


-- 
Marianne Promberger PhD, King's College London
http://promberger.info
R version 2.10.0 (2009-10-26)
Ubuntu 9.04

______________________________________________
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.

Reply via email to