point2points.distances | R Documentation |
Examples
point2points.distances(coord.pt, coord.pts)
For a single point, point2points.distances(c(3,4),matrix(1:6,ncol=2))
For multiple points, t(apply(cbind(rep(3,2),rep(4,2)),1,function(x) point2points.distances(x,matrix(1:6,ncol=2))))
Run time for all England LSOA centroids takes around 20 minutes n <- 100 system.time( m <- t(apply(cbind(rep(3,n),rep(4,n)),1,function(x) point2points.distances(x,matrix(1:(2*271),ncol=2)))) ) user system elapsed 3.038 0.021 3.050
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.