[R] Cluster package broken in 1.4.0?

Petros Tsantoulis ptsant at otenet.gr
Mon Jan 28 21:32:56 CET 2002


Greetings,

I am reasonably experienced with R but I recently tried to 
do some clustering using the "cluster" package, in order
to see if it would help.

I only tried this once with the 1.3.1 version and it worked 
(I don't quite remember which method I used).

Now, I tried with the 1.4.0 version and no clustering function
seems to work with matrices that contain NAs, even
though the help page says it should. I even tried the same
data that worked with 1.3.1.

For example :

> foo
 [1] 68 NA 33 63 53 62 44 NA 20 69 NA 62 59 43 51 19 38 57 30 53 62 67 42 31
38
[26] 50 NA 69 67 38 NA 26 NA 52 39 45 42 58 79 92 53 NA 22 21 30 38 64 49 43
28
[51] 33 42 59 32 41 52 44 54 37 43 32 42 59 39 74 38 33 56 NA 52 38 46 42 29
58
[76] 54 62 32 53 39 28 34 24 44 46 27 38
> fanny(foo, k=2, diss=FALSE)
Error in fanny(foo, k = 2, diss = FALSE) :
        No clustering performed, NA-values in the dissimilarity matrix.

The help page says :

	In case of a matrix or dataframe, each row corresponds to an
        observation, and each column corresponds to a variable. All
        variables must be numeric. Missing values (NAs) are allowed.

This happens with every (?) clustering function that I tried.

Am I doing something wrong? I am not experienced with these 
algorithms and therefore I could be seriously wrong. Is it
possible that this is a software problem? I have used both
the included "cluster" package and a later version that
I got with install.package(). 

My environment is Linux 2.4.11, R compiled with gcc 3.0, libc
2.2.3, using emacs with iESS.

Thank you for your time!

Petros

P.S. Please also reply via e-mail because I read the "digest" list and
     it can be cumbersome to read sometimes. 

-- 
----------------------------------------------------------
GPG key available upon request. Also from keys.pgp.com.
Please verify fingerprint before using.
----------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20020128/d8939dcc/attachment.bin


More information about the R-help mailing list