[BioC] error coming when testing total no of possible clusters in k-means

Budhayash Gautam budhayashgautam at gmail.com
Sat May 7 07:26:44 CEST 2011


hello friends

during k means clustering when i am trying to test total no of
possible clusters with th foowing code error is coming as follows:

kmax<-c(100)
> if(nrow(dat2)<100) {
+ kmax<-nrow(dat2)
+ }
> km<-rep(NA, (kmax-1))
> i<-c(2)
> while(i<kmax) {
+ km[i]<-sum(kmeans(dat2, i, iter.max=20000,
+ nstart="
> km[i]<-sum(kmeans(dat2, i, iter.max=20000,
+ nstart=10)$withinss)
Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)


what could be the possible reason?
could u help me to solve this problem?

with regards..

-- 
BUDHAYASH GAUTAM
Assistant Professor
Department Of Computational Biology And Bioinformatics,
Jacob School of Biotechnology & Bioengineering (JSBB)
Sam Higginbottom Institute of Agriculture, Technology and Sciences
(SHIATS)- Deemed University, Naini, Allahabad.
U.P. 211007



More information about the Bioconductor mailing list