[R-sig-Geo] pairwise geodesic distances

Roger Bivand Roger.Bivand at nhh.no
Wed Jun 13 18:14:36 CEST 2007


On Wed, 13 Jun 2007, Markus Loecher wrote:

> Dear list members,
> I find the dist() function in R very useful to quickly compute
> pairwise distances between vectors of points.
> Is there an equivalent function which uses the geodesic distance
> between lat/lon vectors instead of the ones offered by dist() ?

spDistsN1(..., longlat=TRUE) in sp does a vector to a point, so iterating 
over the second vector, you'd get there.


>
> Thanks !
>
> Markus Loecher
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list