Also
  spDists
  spDistsN1      Euclidean or Great Circle distance between points
In the sp package.

(and in my personal opinion, the  sp package would be a good place to start, since it’s part of a group of packages I view as R’s core packages for working with spatial data)
-Don

On 11/19/10 5:17 AM, "David Winsemius" <dwinsemius@comcast.net> wrote:


On Nov 19, 2010, at 4:50 AM, Lily_stats wrote:

>
> Hi all,
>
> I would like to know a way of calculating the distance between 2
> points when
> I already have the longitude and latitude of the points.
>
> For example :
>
> Point 1 :  52° 9'54.00"N   4°25'8.40"E
> Point 2 :  52°27'46.80"N   4°33'18.00"E
>
> Distance between point 1 and point in km ....
>
> Is there any functions already available for this ?

Searching on:  distance points longitude latitude

gdist {Imap} Geodesic distance (great circle distance) between points
Ellipsoidal.Distance {GEOmap} Ellipsoidal Distance
deg.dist {fossil} Haversine Distance Formula
distaz {RSEIS} Distance and Azimuth from two points
distaz {GEOmap} Distance and Azimuth from two points (# one probably
borrowed from the other)
AlongGreat {RFOC} Get Points Along Great Circle
distAB {clim.pact} Distance between two points on Earth
>
> Any help will be much appreciated!

Suggest you learn to search.

--
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
925 423-1062

	[[alternative HTML version deleted]]

