From 5cfecc80b62559dbfde843716c1f489052fdee4f Mon Sep 17 00:00:00 2001 From: "Alec L. Robitaille" Date: Sun, 14 Apr 2024 15:13:44 -0300 Subject: [PATCH] specify data.table merge --- R/edge_dist.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/edge_dist.R b/R/edge_dist.R index 7201ab12..f75a329d 100644 --- a/R/edge_dist.R +++ b/R/edge_dist.R @@ -226,7 +226,7 @@ edge_dist <- function(DT = NULL, if (fillNA) { - merge(edges, + data.table::merge.data.table(edges, unique(DT[, .SD, .SDcols = c(splitBy, id)]), by.x = c(splitBy, 'ID1'), by.y = c(splitBy, id),