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
\ 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
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of bonnieyuan
Sent: Tuesday, December 13, 2011 2:04 PM
To: r-help@r-project.org
Subject: [R] how to manually enter an double quote as data feed?
I'm doing a text mining project
3 matches
Mail list logo