Learn R Programming

geozoning (version 1.0.0)

ptNei: returns list of point neigbors for each point

Description

returns list of point neigbors for each point

Usage

ptNei(neighBool)

Arguments

neighBool

numeric, boolean neighborhood matrix for pts

Value

a list of pt neigbors for each pt

Examples

Run this code
# NOT RUN {
data(mapTest) # simulated data
grid=genEmptyGrid(calStep(2000,1,1),1,1)
nbP= grid$nx*grid$ny
neighBool=matrix(logical(nbP^2),nbP,nbP)
resVoronoi=voronoiPolygons(mapTest$krigData,c(0,1,0,1),neighBool)
neighBool=resVoronoi$neighBool
listeNpt=ptNei(neighBool)
# }

Run the code above in your browser using DataLab