On 03-Jul-08 01:25:55, Philip James Smith wrote:
> Hi R Community:
> I've got a character string that looks like: New Mexico
> 
> How to I create the new character string that looks like: "New Mexico" 
> That is, it is the original string (New Mexico)  with double quotes 
> infront and behind it?
> 
> Thanks,
> Phil Smith

I tried the following. Is that the sort of thing you want to achieve?

  X<-"New Mexico"
  Y<-"\"New Mexico\""
  X
# [1] "New Mexico"
  Y
# [1] "\"New Mexico\""
  plot((1:10),xlab=X,ylab=Y)

Best wishes,
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <[EMAIL PROTECTED]>
Fax-to-email: +44 (0)870 094 0861
Date: 03-Jul-08                                       Time: 09:22:10
------------------------------ XFMail ------------------------------

______________________________________________
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