"\"" is how its displayed on the screen.  however, if you write your object
to a csv it will be correct.  r cant display """ as it is so it is escaping
the second double quote for you

however, "'" (double quote single quote double quote) does display
correctly as well as save correctly.

If that doesn't answer your question, some more back story on what you're
trying to do would help.

Justin

On Tue, Dec 13, 2011 at 2:03 PM, bonnieyuan <bby2103@columbia.edu> wrote:

> I'm doing a text mining project where I have to manually enter a double
> quote
> as an element inside a vector.
>
> I tried
>
> char[10]='"'#where i enclosed the double quote in a pair of single quotes.
>
> But the result is [1] "\"". Somehow a back slash is added automatically.
>
> I also tried to enclose the double quote in a pair of double quotes. That
> didn't work either.
>
> I'm using Mac and latest release of R.
>
> Thank you!
>
> Bonnie Yuan
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/how-to-manually-enter-an-double-quote-as-data-feed-tp4192283p4192283.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]

