Learn R Programming

geozoning (version 1.0.0)

ptsInSp: ptInSp

Description

ptInSp

Usage

ptsInSp(sp, pts, hole = FALSE)

Arguments

sp

SpatialPolygons

pts

data points

hole

if TRUE also consider points in holes

Value

a data frame with data points within sp

Details

finds data points in sp

Examples

Run this code
# 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