Learn R Programming

geozoning (version 1.0.0)

removeFromZ: removeFromZ

Description

removeFromZ

Usage

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

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

Details

description, a paragraph

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab