[R] paste(" /" ") and paste(" /' ")

Agustin Lobo aloboaleu at gmail.com
Wed Apr 22 10:27:37 CEST 2009


I wish to write  "" using paste(), but


 > paste("\"","Hola","\"",sep="")
[1] "\"Hola\""
 >


while the same approach works with ''
 > paste("\'","Hola","\'",sep="")
[1] "'Hola'"


why this difference? how could I do it to get "Hola" ?

Thanks

Agus

-- 
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: Agustin.Lobo at ija.csic.es
http://www.ija.csic.es/gt/obster




More information about the R-help mailing list