# NOT RUN {
# Create a grid of paris extent and 200 meters
# resolution
data(hospital)
mygrid <- CreateGrid(w = paris, resolution = 200)
# Create a distance matrix between known hospital and mygrid
mymat <- CreateDistMatrix(knownpts = hospital, unknownpts = mygrid)
mymat[1:5,1:5]
nrow(paris)
nrow(mygrid)
dim(mymat)
# }
Run the code above in your browser using DataLab