Learn R Programming

geozoning (version 1.0.0)

detectSmallZones: detectSmallZones

Description

detectSmallZones

Usage

detectSmallZones(zonePolygone, minSize)

Arguments

zonePolygone

list of zones, each zone is a SpatialPolygons

minSize

zone area threshold under which a zone is too small to be manageable

Value

a vector of small zones indices

Details

detect zones with area < minSize

Examples

Run this code
# NOT RUN {
data(mapTest)
ZK=initialZoning(qProb=c(0.4,0.7),mapTest)
Z=ZK$resZ$zonePolygone
minSize=0.012
iSmall=detectSmallZones(Z,minSize) # 2 small zones
# }

Run the code above in your browser using DataLab