[R] Remove double quotation marks

Duncan Murdoch murdoch at stats.uwo.ca
Tue Dec 29 19:20:55 CET 2009


On 29/12/2009 1:16 PM, Lisa wrote:
> Dear All,
> 
> I am not sure how to remove double quotation marks in a string, e.g.,
> paste("variable", 1). Can anybody please help me solve it? Thank you in
> advance.

I think you need to tell us what is wrong with what you get from that. 
When I look at the result:

 > cat(paste("variable", 1), "\n")
variable 1

I see no quotation marks.  (If you use print() you'll see some, but they 
aren't part of the string, they are just used in the default display by 
print().)

Duncan Murdoch



More information about the R-help mailing list