Re: [R] calculate spatial distance

2007-10-30 Thread Gabor Grothendieck
Check out rdist.earth in the fields package. On Oct 30, 2007 11:49 AM, <[EMAIL PROTECTED]> wrote: > Hi, > I have a set of locations defined by longitude and latitude (in degrees), > and want to calculate the spatial (or geographic) distance among all > locations. > I did not find such a function

Re: [R] calculate spatial distance

2007-10-30 Thread Charles C. Berry
RSiteSearch("longitude distance") pops up a bunch of results that seem pertinent. e.g. R: Distance Between Geographic Coordinates (score: 4) R: Distance Along Great Circle Arc (score: 2) ?? On Tue, 30 Oct 2007, Sarah Goslee wrote: > I don't know of such a function,

Re: [R] calculate spatial distance

2007-10-30 Thread Sarah Goslee
I don't know of such a function, but you have several options: 1. Assume that Euclidean distance is "good enough" - probably reasonable over a limited geographic region (and commonly done). 2. Use your GIS software to do the calculations since it already "understands" projections and distances on

[R] calculate spatial distance

2007-10-30 Thread robert . ptacnik
Hi, I have a set of locations defined by longitude and latitude (in degrees), and want to calculate the spatial (or geographic) distance among all locations. I did not find such a function in the spatial-related packages. (I *cannot* use 'dist', as I have geographic, not cartesian coordinates). tha