From 5c2f6c4088c68d86b5cf8e582c0297e9e4c6892f Mon Sep 17 00:00:00 2001
From: MayaGueguen <maya.gueguen@gmail.com>
Date: Tue, 2 Apr 2024 11:38:53 +0200
Subject: [PATCH] Correct predictions for EMci (remove round)

---
 R/biomod2_classes_5.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/R/biomod2_classes_5.R b/R/biomod2_classes_5.R
index 6ee0a25a..c7dcbef9 100644
--- a/R/biomod2_classes_5.R
+++ b/R/biomod2_classes_5.R
@@ -527,7 +527,7 @@ setMethod('predict2', signature(object = 'EMci_biomod2_model', newdata = "data.f
               on_0_1000 <- args$on_0_1000
               
               if (is.null(mean_prediction)) { 
-                mean_prediction <- round(rowMeans(newdata, na.rm = na.rm)) 
+                mean_prediction <- rowMeans(newdata, na.rm = na.rm)
               }
               if (is.null(sd_prediction)) { 
                 sd_prediction <- apply(newdata, 1, sd, na.rm = na.rm)