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" ?

I need this to write this string in R:
v.extract codigo_Montseny07_clump out=extract11917 where="(GRIDCODE = 11917)"

and pass it to grass. Something like:
for (i in polis){
   system("g.region vect=codigo_Montseny07_clump")
   nomextract <- paste("extract",i,sep="")
grcomm <- paste("v.extract codigo_Montseny07_clump out=",nomextract, " where=\"(GRIDCODE = ",i,")\" ",sep="")
   system(grcomm)

...

Thanks

Agus
begin:vcard
fn:Agustin Lobo
n:Lobo;Agustin
org:Institut de Ciencies de la Terra "Jaume Almera" CSIC
adr:;;Lluis Sole Sabris s/n;Barcelona;;08028;Spain
email;internet:agustin.l...@ija.csic.es
url:http://www.ija.csic.es/gt/obster
version:2.1
end:vcard

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to