Displaying 1 result from an estimated 1 matches for "onefeature".
Did you mean:
dnlfeature
2017 Oct 11
1
Iterate in a Spatial Polygon Dataframe in R?
...DataFrame 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]]