removeFromZ: removeFromZ

Description Usage Arguments Details Value Examples

Description

removeFromZ

Usage

1
removeFromZ(Z, zoneN, ptN, listZonePoint, spdata, simplitol = 0.001, n = 1)

Arguments

Z

zoning geometry (list of SpatialPolygons)

zoneN

zone neighborhood Logical matrix

ptN

indices of data pts neighbours

listZonePoint

list of indices of data points within zones, result of call to calNei

spdata

spatial data

simplitol

tolerance for spatial polygons geometry simplification

n

minimal number of points below which a zone is removed from zoning

Details

description, a paragraph

Value

a list with components

Z

new zoning geometry (list of SpatialPolygons)

where zones with less than n points were removed

zoneN

new zone neighborhood Logical matrix

listZonePoint

new list of indices of data points within zones

Examples

1
2
3
4
5
6
7
data(resZTest)
K=resZTest
Z=K$zonePolygone
plotZ(Z)
# remove from Z all zones with less than 10 data points
Z2=removeFromZ(Z,K$zoneN,K$krigN,K$listZonePoint,mapTest$krigData,n=10)
printZid(Z2$Z)

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