shortest_distance_to_line {tectonicr} | R Documentation |
Shortest distance between pairs of geometries
Description
The shortest Great Circle distance between pairs of geometries
Usage
shortest_distance_to_line(x, line, ellipsoidal = FALSE)
Arguments
x , line |
objects of class |
ellipsoidal |
Logical. Whether the distance is calculated using
spherical distances ( |
Value
numeric. Shortest distance in meters
Examples
plate_boundary <- subset(plates, plates$pair == "na-pa")
shortest_distance_to_line(san_andreas, plate_boundary) |>
head()
[Package tectonicr version 0.4.7 Index]