2011/5/19 Marcelino de la Cruz <[email protected]>:
> as.matrix(dist(corrdinates))

 For small distances near the equator yes! Don't try this if you are
studying polar bears!

 Try rdist.earth in the 'fields' package, or try transforming to a
euclidean coordinate system using spTransform before using dist.

Barry

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to