search for: distmeeus

Displaying 1 result from an estimated 1 matches for "distmeeus".

2012 Oct 01
6
nlme: spatial autocorrelation on a sphere
...sphere, therefore metric = "euclidean" in (for example) corSpher would be incorrect. I would be grateful for help on how to write a new distance metric for the corSpatial function. I believe there are several ways that distances on a sphere can be calculated in R, for example the "distMeeus" function in the geosphere library. However, I have no idea how to write this into a corSpatial function. The aim is to end up with a metric = "sphere" option that calculates great circle distances between points using latitude and longitude. Many thanks, Dan