Learn R Programming

geozoning (version 1.0.0)

zoneAssign: zoneAssign

Description

zoneAssign

Usage

zoneAssign(tab, Z)

Arguments

tab

data frame with data values

Z

zoning object

Value

a list of data points within each zone

Details

assigns points to zones

Examples

Run this code
# NOT RUN {
data(mapTest)
ZK=initialZoning(qProb=c(0.4,0.7),mapTest)
Z=ZK$resZ$zonePolygone
listZpts=zoneAssign(mapTest$krigData,Z)
#identical to ZK$resZ$listZonePoint
listZptsRaw=zoneAssign(mapTest$rawData,Z)
plotZ(Z)
points(mapTest$rawData[listZptsRaw[[1]],],col="blue") # add raw data for zone 1
# }

Run the code above in your browser using DataLab