From: pierre Date: Mon, 4 May 2020 15:39:36 +0000 (+0200) Subject: compatibility R 4.0 X-Git-Url: http://iramuteq.org/git?a=commitdiff_plain;h=43c6fca06a3c58a789548c4b306d54e03a94b1c4;p=iramuteq compatibility R 4.0 --- diff --git a/Rscripts/chdfunct.R b/Rscripts/chdfunct.R index d93db99..a5034b6 100644 --- a/Rscripts/chdfunct.R +++ b/Rscripts/chdfunct.R @@ -49,7 +49,7 @@ PrintProfile<- function(dataclasse,profileactlist,profileetlist,antiproact,antip cltot<-as.data.frame(as.character(cltot[,ncol(cltot)])) tot<-nrow(cltot) classes<-as.data.frame(as.character(dataclasse[,ncol(dataclasse)])) - classes.s<-as.data.frame(summary(cltot[,1],maxsum=500)) + classes.s<-as.data.frame(summary(as.factor(cltot[,1]),maxsum=500)) profile<-rbind(profile,c('***','nb classes',clusternb,'***','','')) antipro<-rbind(antipro,c('***','nb classes',clusternb,'***','','')) for(i in 1:clusternb) {