rdist.earth | R Documentation |
rdist.earth
rdist.earth(x1, x2 = NULL)
x1 |
2 columns matrix, [lat, lon] |
x2 |
same as x1 |
## Not run:
loc <- st840[, .(lat, lon)] %>% as.matrix()
dist <- rdist.earth(loc)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.