From 61b6c99fe4f536dc02a81de71a06e59d336a549a Mon Sep 17 00:00:00 2001 From: "Martin R. Smith" <1695515+ms609@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:05:31 +0100 Subject: [PATCH] Don't use names --- R/tree_distance_utilities.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/tree_distance_utilities.R b/R/tree_distance_utilities.R index 6584cbaac..19db45cb6 100644 --- a/R/tree_distance_utilities.R +++ b/R/tree_distance_utilities.R @@ -179,7 +179,8 @@ CalculateTreeDistance <- function(Func, tree1, tree2 = NULL, tipLabels, nTip = length(tipLabels), ...) { if (is.na(nTip)) { - tipLabels <- union(unlist(tipLabels), unlist(TipLabels(splits2))) + tipLabels <- union(unlist(tipLabels, use.names = FALSE), + unlist(TipLabels(splits2), use.names = FALSE)) splits1 <- as.Splits(splits1, tipLabels = tipLabels, asSplits = TRUE) splits2 <- as.Splits(splits2, tipLabels = tipLabels, asSplits = TRUE) vapply(splits1, function(s1) {