
Duncan
's
index by taking into account the interaction between spatial units
(common boundaries and perimeters). The function can be used
in two ways: by providing the boundaries matrix and perimeter
vector or a geographic source (spatial object or shape file) wich
will be used to compute the geographic information within the functionWong(x, b = NULL, p = NULL, a = NULL, spatobj = NULL, folder = NULL, shape = NULL)
Duncan
,
Morill
, Gini
, Gorard
Intergroup dissimilarity index: DI
x <- slot(AnnHAge, 'data')[ ,3:5]
bound <- boundaries(AnnHAge)
per <- perimeter(AnnHAge)
ar <- area(AnnHAge)
foldername <- system.file('extdata', package = 'OasisR')
shapename <- 'AnnHAge'
Wong(x, b = bound, p = per, a = ar)
Wong(x, spatobj = AnnHAge)
Wong(x, folder = foldername, shape = shapename)
Run the code above in your browser using DataLab