Learn R Programming

geozoning (version 1.0.0)

labZone: labZone

Description

labZone

Usage

labZone(K, qProb, dataF)

Arguments

K

zoning object, as returned by the calNei function

qProb

probability vector used to generate quantile values for Z

dataF

data used to generate labels and zoning

Value

a zoning object with labelled zones in lab component

Details

assigns a class label (integer) to a zone depending on the zone mean value and on the quantile values (as in PA paper). Default label is 1, corresponding to a mean value smaller or equal to first quantile. For p ordered quantile values, if mean value is greater than quantile k and smaller or equal to quantile k+1, zone label is k+1. if mean value is greater than quantile p, zone label is p+1.

Examples

Run this code
# NOT RUN {
data(mapTest)
dataF=mapTest$krigGrid
data(resZTest)
K=resZTest
p = K$qProb
labZone(K,p,dataF)
# }

Run the code above in your browser using DataLab