powered by
ptInSp
ptsInSp(sp, pts, hole = FALSE)
SpatialPolygons
data points
if TRUE also consider points in holes
a data frame with data points within sp
finds data points in sp
# NOT RUN { data(mapTest) data(resZTest) Z=resZTest$zonePolygone ptsInSp(Z[[5]],mapTest$krigData) # 5 data points within zone 5 # }
Run the code above in your browser using DataLab