Learn R Programming

geozoning (version 1.0.0)

valZ: valZ

Description

valZ

Usage

valZ(map, K)

Arguments

map

map object returned by genMap function

K

zoning object (such as returned by calNei function)

Value

a list with components

val

list with vector of data values for each zone, zones are sorted by increasing mean values

ord

order of zones sorted by increasing mean values

Details

sorts zones according to attribute mean value

Examples

Run this code
# NOT RUN {
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]]
valZ(mapTest,K)
# }

Run the code above in your browser using DataLab