Learn R Programming

geozoning (version 1.0.0)

trLabZone: trLabZone

Description

trLabZone

Usage

trLabZone(K1, K2, map, qProb, disp = 0)

Arguments

K1

zoning object (such as returned by calNei function)

K2

zoning object (such as returned by calNei function)

map

object returned by genMap function

qProb

probability vector used to generate quantile values

disp

0: no info, 1: detailed info

Value

a zoning object

Details

transfer zone labels from K1 to K2

Examples

Run this code
# NOT RUN {
data(mapTest)
data(resZTest)
K=resZTest
Ns=geozoning:::getNs(K$zoneNModif,5) # find neighbors of zone 5
zf=zoneFusion3(K,5,Ns,mapTest,disp=0) # merge zone 5 with englobing one
K2=calNei(zf,mapTest$krigData,mapTest$krigSurfVoronoi,mapTest$krigN)
K2=geozoning:::trLabZone(K,K2,mapTest,K$qProb)
# }

Run the code above in your browser using DataLab