Description Usage Arguments Details Value Examples
meanL
1 | meanL(zlab, listZonePoint, tabVal, surfVoronoi)
|
zlab |
list with zone numbers for each zone label |
listZonePoint |
list of indices of data points within zones, result of call to |
tabVal |
SpatialPointsDataFrame containing data values |
surfVoronoi |
Surfaces of the Voronoi polygons corresponding to data pts |
compute overall mean of all zones for each label
a list with components
vector of weighted (with Voronoi surfaces) per label average values
vector of per label Voronoi surfaces
1 2 3 4 5 6 7 8 | data(mapTest)
# run zoning with 2 quantiles corresponding to probability values 0.4 and 0.7,
# saving initial zoning and last level zonings
criti=correctionTree(c(0.4,0.7),mapTest,SAVE=TRUE)
K=criti$zk[[2]][[1]]
uni=unique(K$lab)
zlab=sapply(uni,function(x){(1:length(K$lab))[K$lab==x]})
resL=meanL(zlab,K$listZonePoint,mapTest$krigData,mapTest$krigSurfVoronoi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.