Learn R Programming

geozoning (version 1.0.0)

wMean: wMean

Description

wMean

Usage

wMean(type, listZonePoint, surfVoronoi, data)

Arguments

type

1-squared mean, 2-mean

listZonePoint

list of data points belonging to zone

surfVoronoi

areas of Voronoi polygon corresponding to data points

data

SpatialPointsDataFrame

Value

a vector of mean zone values

Details

computes weighted mean or squared mean of zone data

Examples

Run this code
# NOT RUN {
data(mapTest)
data(resZTest)
K=resZTest
wMean(1,K$listZonePoint,mapTest$krigSurfVoronoi,mapTest$krigData)
# }

Run the code above in your browser using DataLab