powered by
Calculates the NNI as a measure of clustering or dispersal
nni(x, win = "hull")
An sp point object
Type of window 'hull' or 'extent'
list object containing NNI = nearest neighbor index, z.score = Z Score value, p = p value, expected.mean.distance = Expected meand distance, observed.mean.distance = Observed meand distance.
Clark, P.J., and F.C. Evans (1954) Distance to nearest neighbour as a measure of spatial relationships in populations. Ecology 35:445-453
Cressie, N (1991) Statistics for spatial data. Wiley & Sons, New York.
# NOT RUN { require(sp) data(meuse) coordinates(meuse) <- ~x+y nni(meuse) # }
Run the code above in your browser using DataLab