[R] calculate spatial distance
Gabor Grothendieck
ggrothendieck at gmail.com
Tue Oct 30 20:46:29 CET 2007
Check out rdist.earth in the fields package.
On Oct 30, 2007 11:49 AM, <robert.ptacnik at niva.no> 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 in the spatial-related packages. (I *cannot*
> use 'dist', as I have geographic, not cartesian coordinates).
> thanks!
> Robert
>
>
> Robert Ptacnik
> Norwegian Institute for Water Research (NIVA)
> Gaustadalléen 21
> NO-0349 Oslo
> mobile +47 982 277 81
> FON NIVA +47 22 18 51 00
> FAX +47 22 18 52 00
>
>
>
> ----------------------------------------------------------------------------------------------------------------------
> NIVAs hovedkontor har flyttet til nye lokaler i CIENS - Forskningssenter
> for miljø og samfunn; Gaustadalléen 21, 0349 Oslo. Meld deg på vårt
> nyhetsbrev på www.niva.no
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list