[R-sig-Geo] calculate distance from coordinates

Kamran Safi Kamran.Safi at ioz.ac.uk
Wed Dec 17 15:08:53 CET 2008


Hi Annachiara,

This is what you are looking for, I think:

http://help.nceas.ucsb.edu/R:_Spatial

Somewhere down at the middle... 


Kamran


------------------------
Kamran Safi

Postdoctoral Research Fellow
Institute of Zoology
Zoological Society of London
Regent's Park
London NW1 4RY

http://www.zoo.cam.ac.uk/ioz/people/safi.htm

http://spatialr.googlepages.com
http://asapi.wetpaint.com


-----Original Message-----
From: r-sig-geo-bounces at stat.math.ethz.ch
[mailto:r-sig-geo-bounces at stat.math.ethz.ch] On Behalf Of Annachiara
Saguatti
Sent: 17 December 2008 13:59
To: r-sig-geo at stat.math.ethz.ch
Subject: [R-sig-Geo] calculate distance from coordinates

Hello,

I have a question which should be very simple. I have a list of long-lat
coordinates of 196 sites and I need to calculate the great circle
distance
(in miles?) between all of them. I can't find the right function
though... I
need this in order to calculate the quartiles of the distances between
all
the regions and set a cut-off distance to create a neighbor list. I have
tried the "dist" function but the output doesn't seem to be what I
expected,
because I cannot recognize the numbers I get as the distance between the
sites: they're too low (max 44.51000, but the sites are the European
regional capitals...).

Does anyone have a hint on this?

Thank you very much,
Annachiara Saguatti

	[[alternative HTML version deleted]]

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




Click
https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==
QY9pqEtBGg0LlGvnh1B!oYVi7e7dvuP24!X9jTmmkEZ8A==  to report this email as
spam.


The Zoological Society of London is incorporated by Royal Charter
Principal Office England. Company Number RC000749
Registered address: 
Regent's Park, London, England NW1 4RY
Registered Charity in England and Wales no. 208728 

_________________________________________________________________________
This e-mail has been sent in confidence to the named add...{{dropped:17}}




More information about the R-sig-Geo mailing list