Re: [R] naming consecutive objects

2010-03-29 Thread Ivan Calandra
Hi, what about: assign()? I don't know if it's really important, but I've always seen the assignment operator the other way (<-) HTH, Ivan Le 3/29/2010 13:14, dgallego a écrit : Dear list, I would generate a loop: a<-c(1:98) for (i in a ) { cbind(vor.tile[[i]]$x, vor.tile[

[R] naming consecutive objects

2010-03-29 Thread dgallego
Dear list, I would generate a loop: a<-c(1:98) for (i in a ) { cbind(vor.tile[[i]]$x, vor.tile[[i]]$y)->p rbind(p,c(p[1,]))->p.c Polygon(p.c)->pc.p Polygons(list(pc.p),sprintf("p%s",i))->pc.ps sprintf("pc.ps%s",i)<-pc.ps } I need to obtain 98 pc.ps objects (like: pc.ps1, pc