powered by
rdist.earth(x1, x2, miles = TRUE, R = NULL)
data(ozone2) out<- rdist.earth ( ozone2$lon.lat) #out is a 153X153 distance matrix upper<- col(out)> row( out) # histogram of all pairwise distances. hist( out[upper])
Run the code above in your browser using DataLab