Hi Peng,

May be write.table(...,quote=F)

bests

milton

On Thu, Jan 21, 2010 at 6:29 PM, Peng Yu <pengyu...@gmail.com> wrote:

> Please see the following example. I can not write '"' to a csv file
> successfully. Could somebody let me if it is possible to write '"' to
> a csv file with the default setting of write.csv?
>
> my_home$ Rscript main_quote.R
> > x=rbind(
> +   "\"A\""
> +   , "\"B\""
> +   )
> > x
>     [,1]
> [1,] "\"A\""
> [2,] "\"B\""
> >
> > write.csv(x, "main_quote.csv", row.names=F)
> >
> my_home$ cat main_quote.csv
> "V1"
> """A"""
> """B"""
>
> ______________________________________________
> 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.
>

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

Reply via email to