[R] how to insert a double quote with the paste function?

Philippe Hupé Philippe.Hupe at curie.fr
Thu Sep 11 09:54:32 CEST 2003


Hello,

I would like to write in a variable the following string :

Hello "World"

If I do cat("Hello ","\"World\""), I have the good result on the screen 
but it can not be affected to a variable. If I do the same thing with 
paste paste("Hello ","\"World\"") it does not work since \" seems to be 
not recognized. So what is the trick to do that.

Thanks,

Philippe
-- 

--------------------------------------------------

Philippe Hupé
Institut Curie - Equipe Bioinformatique
26, rue d'Ulm - 75005 PARIS France
+33 (0)1 44 32 42 75

Philippe.Hupe at curie.fr <mailto:Philippe.Hupe at curie.fr>




More information about the R-help mailing list