From 99e272a80f639895bde8bc33103471508800f474 Mon Sep 17 00:00:00 2001 From: Waldir Leoncio Date: Mon, 26 Aug 2024 06:09:27 +0200 Subject: [PATCH] Ensure diffInCounts returns as.matrix (#24) --- R/computeDiffInCounts.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/computeDiffInCounts.R b/R/computeDiffInCounts.R index 10a3beb..210ecdb 100644 --- a/R/computeDiffInCounts.R +++ b/R/computeDiffInCounts.R @@ -13,5 +13,5 @@ computeDiffInCounts <- function(rows, max_noalle, nloci, data) { diffInCounts[element] <- diffInCounts[element] + 1 } } - return(diffInCounts) + return(as.matrix(diffInCounts)) }