[BioC] problem in knn {EMV}

Alice Le Bars alice.le-bars at nantes.inserm.fr
Fri Mar 18 16:46:36 CET 2005


Dear all,

I have a problem with the knn's function in EMV package.
When  I try to do like the example given in help Html it works, but with 
my own matrix, R returns the following message :
 > library (EMV)
 > temp [1:3, 1:10]
     V3    V4    V5    V6    V7    V8    V9   V10   V11   V12
3 -0.03 -0.29  0.12 -0.05 -0.12  0.02 -0.17  0.09  0.29 -0.04
4 -0.25 -0.36 -0.29 -0.21 -0.15 -0.15    NA -0.13  0.16 -0.09
6 -0.40 -0.37 -0.39    NA -0.13 -0.22  0.01 -0.15 -0.22    NA
 > matcomplete <- knn(temp,k=15) 
Error in knn(temp, k = 15) : No rows without missing values

My matrix has actually 14% of NA, which are recognized by R as NA 
(summary function). My matrix (temp) is in a numeric mode and has 
dimension of  3169*160

Is anybody has the same problem or knows a solution?

Thanks.

Alice.



More information about the Bioconductor mailing list