[R-sig-Geo] Smallest distance from one point feature to a pointlayer

Torleif Markussen Lunde Torleif.Lunde at cih.uib.no
Tue Mar 10 19:14:40 CET 2009


Hi
 
Roger Bivand replied a similar question 3.5 years (roughly) ago. Maybe this link can help you:
 
https://stat.ethz.ch/pipermail/r-sig-geo/2005-November/000682.html <http://osdir.com/ml/lang.r.geo/2005-11/msg00032.html> 
 
Best wishes
Torleif 

________________________________

Fra: r-sig-geo-bounces at stat.math.ethz.ch på vegne av Gustaf Rydevik
Sendt: ti 10.03.2009 19:06
Til: r-sig-geo at stat.math.ethz.ch
Emne: [R-sig-Geo] Smallest distance from one point feature to a pointlayer



Hi All,

I have two shapefiles with point features, A and B. I've managed to
import them into R with maptools and spatstat.
Now I would like to calculate, for each point in A, the closest
distance to any point in B.
What is the best way to do this?

Many thanks in advance,

Gustaf
--
Gustaf Rydevik, M.Sci.
tel: +46(0)703 051 451
address:Essingetorget 40,112 66 Stockholm, SE
skype:gustaf_rydevik

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



More information about the R-sig-Geo mailing list