Skip to content

R - how to measure the distance?

2 messages · porzycka at agh.edu.pl, Olivier ETERRADOSSI

#
Hello,
I have been worked with R for 3 weeks. I have one problem. I could not
find the answer on it on web pages. I do not know how to measure the
shortes distance between point (Lon/Lat) and line. I used spatstat package
and distmap() but I want to calculate these distances only for particular
points without generate distance map.

Thank you for all hints.
S.Porzycka
1 day later
#
Hi,
I'm not sure that I fully understand your problem, so forgive me if my
suggestion is irrelevant :
maybe you should have a look to function geod.dist , in the oce package.
Hope this helps. Olivier
porzycka wrote: