Description Usage Arguments Value
View source: R/get_one_to_one_distance.R
This function will calculate the distance between the 2 spatial features in each row
| 1 2 3 4 5 6 7 | get_one_to_one_distance(
  x,
  x_geom = "geometry.x",
  y_geom = "geometry.y",
  splits = 50,
  centroid = TRUE
)
 | 
| x | The sf object with both the x geometry and the y geometry | 
| x_geom | The geometry of the object on the lhs | 
| y_geom | The geometry of the object on the rhs | 
| splits | The number of lists so as to speed up the calculation | 
| centroid | Default is TRUE. If TRUE, convert x_geom and y_geom to centroids | 
Returns the sf object with additional column, geom_distance_m in meters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.