Hi Scott,
have a look at the 'earth.dist'-function in the package 'fossil'.

hth.

Am 11.04.2011 17:37, schrieb Scott Chamberlain:
> Dear R, 
> 
> 
> I have a bunch of geographic locations specified by lat-long coordinates. 
> What's an easy way to calculate geographic distance between any two points? 
> OR, perhaps there is a function for calculating a distance matrix for K 
> sites? 
> 
> 
> Sincerely, 
> Scott Chamberlain
> 
> 
> 
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@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.

-- 
Eik Vettorazzi
Institut für Medizinische Biometrie und Epidemiologie
Universitätsklinikum Hamburg-Eppendorf

Martinistr. 52
20246 Hamburg

T ++49/40/7410-58243
F ++49/40/7410-57790

______________________________________________
R-help@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.

Reply via email to