Learn R Programming

geozoning (version 1.0.0)

calZoneN: calZoneN

Description

calZoneN

Usage

calZoneN(ptN, zoneN, listZonePoint)

Arguments

ptN

pt neighborhood Logical matrix

zoneN

empty zone neighborhood Logical matrix

listZonePoint

list of indices of data points within zones

Value

a list with component zoneN holding filled zone neighborhood Logical matrix

Details

calculate zone neighborhood

Examples

Run this code
# NOT RUN {
data(mapTest)
data(resZTest)
K=resZTest
ptN=mapTest$krigN
nZ=length(K$zonePolygone)
zoneN=matrix(logical(nZ*nZ),nZ,nZ)
listZonePoint=K$listZonePoint
calZoneN(ptN,zoneN,listZonePoint)
# }

Run the code above in your browser using DataLab