Closest observation method

r_closest <-
  vect(d) |>
  voronoi() |>
  rasterize(grid, field = "vble") |>
  mask(map)