From e6b4aee9fd6fe69cb248c1e2f4d94f0a67ea3780 Mon Sep 17 00:00:00 2001 From: Vincent van Hees Date: Mon, 26 Sep 2022 18:21:31 +0200 Subject: [PATCH] correction forgotten in previous commit #653 --- R/g.analyse.perday.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/g.analyse.perday.R b/R/g.analyse.perday.R index 56446ce62..527001688 100644 --- a/R/g.analyse.perday.R +++ b/R/g.analyse.perday.R @@ -615,7 +615,7 @@ g.analyse.perday = function(ndays, firstmidnighti, time, nfeatures, } } } - if (mi == ExtFunColsi) { # INSERT HERE VARIABLES DERIVED WITH EXTERNAL FUNCTION + if (mi %in% ExtFunColsi == TRUE) { # INSERT HERE VARIABLES DERIVED WITH EXTERNAL FUNCTION if (myfun$reporttype == "event") { # For the event report type we take the sum eventAgg = aggregateEvent(metric_name = cn_metashort[mi], varnum = varnum, epochsize = ws3, anwi_nameindices = anwi_nameindices,