data("nuvel1")
na_pa <- subset(nuvel1, nuvel1$plate.rot == "na")
data("plates")
plate_boundary <- subset(plates, plates$pair == "na-pa")
data("san_andreas")
res <- distance_from_pb(
x = san_andreas, PoR = na_pa, pb = plate_boundary, tangential = TRUE
)
head(res)
res.km <- distance_from_pb(
x = san_andreas, PoR = na_pa, pb = plate_boundary, tangential = TRUE, km = TRUE
)
range(res.km)
Run the code above in your browser using DataLab