[R-sig-Geo] Highway Distance matrix
Adrian.Baddeley at csiro.au
Adrian.Baddeley at csiro.au
Sat Aug 6 04:43:37 CEST 2011
Raphael Saldanha saldanha.plangeo at gmail.com<mailto:saldanha.plangeo at gmail.com> writes:
> How can I compute a distance matrix of points (citys) based on a highway
> base map?
The 'spatstat' package has functionality for analysing point patterns on a network of lines.
The function 'pairdist.lpp' will do exactly what you want.
library(spatstat)
help(pairdist.lpp)
[NB The current implementation of network analysis in spatstat is temporary and is not suited for very large databases. In a forthcoming version, the network code will be based on the 'igraph' package. ]
Adrian Baddeley
More information about the R-sig-Geo
mailing list