1 ColType <- function(x) {
11 LevelsNb<- function(x) {
13 for (i in 1:ncol(x)) {
14 if (mode(as.matrix(x[,i]))=="character") {
15 levelsnb[i]<-length(levels(x[,i]))
24 ReadData<- function(filename,sep=';',quote='"', header=TRUE, encoding='', na.strings ='',rownames=NULL) {
25 if (version$os=='linux-gnu') {
26 dataimport<-read.csv2(file(filename,encoding=encoding), header=header, sep=sep, quote=quote, na.strings='',row.names=rownames)
28 dataimport<-read.csv2(filename,encoding=encoding, header=header,sep=sep, quote=quote,na.strings='',row.names=rownames)
33 testzero<-function(mydata) {
36 for (i in 1:ncol(mydata)) {
37 if (sum(mydata[,i])==0) {
43 for (j in 1:nrow(mydata)) {
45 if (sum(mydata[j,])==0) {