Hi Everybody, I am having problem while running a code in R related to knn imputation of my matrix. The code i am using is as follows:
t <- read.table(file="/home/ankhee/Desktop/Different_datasets/KADOSH_2005", check.names=FALSE, row.names=1,colClasses=NA, sep="\t",header=T) r<-as.matrix(t) limit<-dim(r) a<-(colSums(is.na(r))/limit[1])*100 b<-which(a<=30) r.subt<-r[,b] r.subt<-as.matrix(r.subt) v<-dim(r.subt) p<-((rowSums(is.na(r.subt))/v[2])*100) q<-which(p<=20) r.sub<-r.subt[q,] mydata <- list(x=r.sub) library(pamr) r.imputed<-pamr.knnimpute(mydata,k=9) And the same time the error i am getting is: *** caught segfault *** address 0x5d1da0bb, cause 'memory not mapped' Segmentation fault I tried to look for the same error related to knn imputation but i could not fish out anything of that sort. So anybody who has idea or solution in this regard please try to help me out. Thank you in advance. Regards -- Ankhee Dutta project trainee, JNU,New Delhi-67 [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.