Thanks so much for the good advice. I was able to get the function to work. Cloe -- View this message in context: http://r.789695.n4.nabble.com/Using-earth-dist-function-tp4407892p4410920.html Sent from the R help mailing list archive at Nabble.com.