X-Git-Url: http://iramuteq.org/git?a=blobdiff_plain;f=Rscripts%2FCHD.R;h=4e64b01bbb612648265ced9c2c8cb303118e08ca;hb=faaf205d0a60aa5376b0a291308289ac5f5c8bfe;hp=68edd4e848d9af2d2527d14ac82998d38305afc0;hpb=8347c52224950bb01c725f9efdeee8631f8d4052;p=iramuteq diff --git a/Rscripts/CHD.R b/Rscripts/CHD.R index 68edd4e..4e64b01 100644 --- a/Rscripts/CHD.R +++ b/Rscripts/CHD.R @@ -1,5 +1,5 @@ #Author: Pierre Ratinaud -#Copyright (c) 2008-2011 Pierre Ratinaud +#Copyright (c) 2008-2020 Pierre Ratinaud #License: GNU/GPL pp<-function(txt,val) { @@ -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 } }