Learn R Programming

geozoning (version 1.0.0)

nPolySp: nPolySp

Description

nPolySp

Usage

nPolySp(sp)

Arguments

sp

SpatialPolygons

Value

the number of polygons within the current zone

Details

number of polygons in SpatialPolygons

Examples

Run this code
# 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