Learn R Programming

geozoning (version 1.0.0)

getNs: getNs

Description

getNs

Usage

getNs(zoneN, iZ)

Arguments

zoneN

zone neighborhood Logical matrix

iZ

index of current zone in zoning

Value

a Logical vector of current zone neighbors

Details

get zone numbers of neighbors of a given zone

Examples

Run this code
# NOT RUN {
data(mapTest)
K=resZTest
Ns=geozoning:::getNs(K$zoneNModif,5) # find neighbors of zone 5
# }

Run the code above in your browser using DataLab