Hi all,

 I'm trying to iterate in a SpatialPolygonDataFrame thatcontains 110 features. 
I tried to use the following code 
iterate.spdf =function(x){ for (i in 1:nrow(x)){ p = x[i, ]} return(p)}
but with no success as it returns with aSpatialPolygonDataFrame that contains 
onlyone feature. The code seems to overwrite the polygons to end up with only 
onefeature.
 Any suggestions?Ashraf, cheers


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to