powered by
getClosestZone
getClosestZone(iZ, Z, zoneN)
current zone number
current zone
zone neighborhood Logical matrix
the closest zone index
get closest non neighbor zone (i.e. excluding neighbor zones and englobing zone)
# NOT RUN { data(resZTest) Z=resZTest$zonePolygone geozoning:::getClosestZone(4,Z,resZTest$zoneNModif) # }
Run the code above in your browser using DataLab