nb
), the function returns the Euclidean distances along the links
in a list of the same form as the neighbours list. If lonlat = TRUE, Great
Circle distances are used.nbdists(nb, coords, lonlat = FALSE)
nb
nbdist
summary.nb
, nb2listw
data(columbus)
dlist <- nbdists(col.gal.nb, coords)
dlist <- lapply(dlist, function(x) 1/x)
stem(unlist(dlist))
Run the code above in your browser using DataLab