R 4.3
authorpierre <pierre.ratinaud@univ-tlse2.fr>
Thu, 1 Feb 2024 22:50:18 +0000 (23:50 +0100)
committerpierre <pierre.ratinaud@univ-tlse2.fr>
Thu, 1 Feb 2024 22:50:18 +0000 (23:50 +0100)
Rscripts/CHD.R

index a480df9..4e64b01 100644 (file)
@@ -230,7 +230,7 @@ CHD<-function(data.in, x=9, mode.patate = FALSE, svd.method, libsvdc.path=NULL){
                        print('longueur < 0')
                        malcl<-length(vdelta)
                        if ((it>1)&&(!is.logical(listsub[[it]]))&&(!is.logical(listsub[[it-1]]))){
-                               if (listsub[[it]]==listsub[[(it-1)]]){
+                               if (all(listsub[[it]]==listsub[[(it-1)]])){
                                        malcl<-0
                                }
                        }