Learn R Programming

geozoning (version 1.0.0)

getClosestZone: getClosestZone

Description

getClosestZone

Usage

getClosestZone(iZ, Z, zoneN)

Arguments

iZ

current zone number

Z

current zone

zoneN

zone neighborhood Logical matrix

Value

the closest zone index

Details

get closest non neighbor zone (i.e. excluding neighbor zones and englobing zone)

Examples

Run this code
# NOT RUN {
data(resZTest)
Z=resZTest$zonePolygone
geozoning:::getClosestZone(4,Z,resZTest$zoneNModif)
# }

Run the code above in your browser using DataLab