powered by
rdist.earth(x1, x2, 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