From 22938d52e9127d835b1a240fcab7fdd0f210d23f Mon Sep 17 00:00:00 2001 From: George Chen <72078254+jiajic@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:47:51 -0400 Subject: [PATCH] Update buffer.R --- R/buffer.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/buffer.R b/R/buffer.R index f9ea3ffb..1e05590c 100644 --- a/R/buffer.R +++ b/R/buffer.R @@ -98,7 +98,7 @@ setMethod("settleGeom", signature("SpatVector"), function(x) { # Create Voronoi polygons for the points # Note: extend parameter ensures Voronoi polygons cover all buffer areas - vor <- voronoi(centroids(x), bnd = ext(x) * 1.2) + vor <- terra::voronoi(centroids(x), bnd = ext(x) * 1.2) # voronoi does not return values in order. Reorder with index vor <- terra::sort(vor, v = ".idx")