powered by
rdist.earth(loc1, loc2, miles = TRUE, R = NULL)
out<- rdist.earth ( ozone$lon.lat) #out is a 20X20 distance matrix
Run the code above in your browser using DataLab