1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| comparaison<-function(A,B){
mydata1<-read.csv(A,sep="\t",header=TRUE)
mydata2<-read.csv(B,sep="\t",header=TRUE)
liste_champs<-c(5,9,12)
for (i in 1:length(liste_champs)){
indice<-liste_champs[i];
new_column2<-mydata1[,indice]
old_column2<-mydata2[,indice]
kolgo<-ks.test(new_column2,old_column2)
======================================
print(kolgo)
par("mfrow"=c(2,1))
hist1<-hist(new_column2,col="red",freq=FALSE,xlab="Valeurs",breaks=50,main=paste("new: ",names_new2[indice]))
hist2<-hist(old_column2,col="blue",freq=FALSE,xlab="Valeurs",breaks=50,main=paste("old: ",names_old2[indice]))
} |
Partager