# NOT RUN {
data(springs)
#produces a plot representing the cumulative nearest neighbour distance distribution;
#an acceptance interval based on 99 randomized simulations is also shown.
refNNa(springs, B=99)
#load the Startbucks datset
data(Starbucks)
#load the raster representing the numerical covariate
data(popdensity)
#perform the analysis, controlling for the 1st order effect
refNNa(Starbucks, cov.var=popdensity, B=99)
# }
Run the code above in your browser using DataCamp Workspace