View source: R/calculate_distance.R
calculate_distance | R Documentation |
calculate distance between adjacent cells
calculate_distance(x, adj)
x |
|
adj |
|
calculate_distance function allows for both projected and geographic coordinate systems. If the coordinate system is geographic (e.g. wgs84) the distance is calculated using the sf::st_distance function else distance calculated using Pythagorean theorem
matrix
euclidean distances between adjacent cells
Joseph Lewis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.