getZonePts: getZonePts

Description Usage Arguments Details Value Examples

Description

getZonePts

Usage

1
getZonePts(ptsp, zone)

Arguments

ptsp

SpatialPointsDataFrame with data values

zone

SpatialPolygons defining a zone

Details

get all data points within a zone

Value

a list with components

pts

SpatialPointsDataFrame with the data points within the zone

mask

Logical vector of the within zone data points indices

Examples

1
2
3
4
5
6
7
8
data(resZTest)
K=resZTest
Z=K$zonePolygone
data(mapTest)
ptsp=mapTest$krigData
res=getZonePts(ptsp,Z[[5]])
plotZ(Z)
points(res$pts,col="blue",pch=20)

hazaeljones/geozoning documentation built on May 30, 2019, 3:06 p.m.