R/v_snapping.R

Defines functions v_snapping

v_snapping <- function(x, sites, nearest_subsegs) {
  sg.col <- attributes(sites)$sf_column
  st_nearest_points(sites[x, sg.col], nearest_subsegs[[x]])
}

Try the SSNbler package in your browser

Any scripts or data that you put into this service are public.

SSNbler documentation built on Sept. 30, 2024, 9:44 a.m.