[R] Quotes inside char string

Mike Pfeiff MikeP at kfoc.net
Tue Dec 20 20:32:49 CET 2011

Duncan, Thank you for referring me to Uwe's answer.  

-----Original Message-----
From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com] 
Sent: Tuesday, December 20, 2011 1:14 PM
To: Mike Pfeiff
Cc: 'R-help at r-project.org'
Subject: Re: [R] Quotes inside char string

On 20/12/2011 2:10 PM, Mike Pfeiff wrote:
> How do I return a character string with quotes inside string?
> For example, what logic do I use if I want to return the following:
> Test Score="A"
> I tried the following  ....
>                 Score<-paste("Test Score=","A",sep='"')
> But it returned a "\" inside:

No it didn't, as Uwe explained to you.

Duncan Murdoch

>                 "Test Score=\"A"
> Any assistance would be greatly appreciated.
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at 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.

More information about the R-help mailing list