[R] How do I paste double quotes arround a character string?
    Erik Iverson 
    iverson at biostat.wisc.edu
       
    Thu Jul  3 03:37:22 CEST 2008
    
    
  
Philip James Smith wrote:
> Hi R Community:
> 
> I've got a character string that looks like: New Mexico
What does this mean? I do not think I understand. Do you have a vector 
with one element (New Mexico) in it?  I think we need a few more 
details, like what it is exactly you have (class of your data), and what 
you want to do with it.  If your string is in a variable 'x', try str(x) 
and class(x).
> 
> 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
> 
> ______________________________________________
> 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