sf_distance_matrix | R Documentation |
Generates distance matrix for sf object
sf_distance_matrix(sfj)
sfj |
An |
A matrix.
pts = sf::read_sf(system.file('extdata/pts.gpkg',package = 'sdsfun'))
pts_distm = sf_distance_matrix(pts)
pts_distm[1:5,1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.