powered by
nPolySp
nPolySp(sp)
SpatialPolygons
the number of polygons within the current zone
number of polygons in SpatialPolygons
# NOT RUN { ZK=initialZoning(qProb=c(0.4,0.2,0.7),mapTest) Z=ZK$resZ$zonePolygone print(paste(geozoning:::nPolySp(Z[[2]]),"polygons")) # }
Run the code above in your browser using DataLab