View source: R/trigonometry_degrees.R
shortest_distance_to_line | R Documentation |
The shortest Great Circle distance between pairs of geometries
shortest_distance_to_line(x, line, ellipsoidal = FALSE)
x , line |
objects of class |
ellipsoidal |
Logical. Whether the distance is calculated using
spherical distances ( |
numeric. Shortest distance in meters
plate_boundary <- subset(plates, plates$pair == "na-pa")
shortest_distance_to_line(san_andreas, plate_boundary) |>
head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.