MeanVarWPts: MeanVarWPts

Description Usage Arguments Details Value Examples

Description

MeanVarWPts

Usage

1
MeanVarWPts(map, zone, w = NULL)

Arguments

map

object returned by function genMap

zone

SpatialPolygons defining a zone

w

weighting vector (default NULL)

Details

computes (weighted) mean and variance of zone data

Value

a list with components

mean

(weighted) mean of the within zone attribute value

var

(weighted) variance of the within zone attribute value

Examples

1
2
3
4
5
6
7
data(resZTest)
K=resZTest
Z=K$zonePolygone
data(mapTest)
MeanVarWPts(mapTest,Z[[1]])
# Weights are areas of the Voronoi polygons corresponding to data points
MeanVarWPts(mapTest,Z[[1]],mapTest$krigSurfVoronoi) #slightly different result

geozoning documentation built on May 2, 2019, 9:43 a.m.