Hello everyone

I tried to use clust function using "hclustWard" clustering method
The distance mesaured I have used is "rf"
The data used is in the form of data frame (it is not a distance matrix) -
sd.df

The piece of code I have used is:
c1 <- clust(sd.df,k=6,method="hclustWard",distMethod="rf")

But I get the following error message,

Error in if (n < 2) stop("must have n >= 2 objects to cluster") :
  argument is of length zero

Could any one help me with this? Also I tried to check the code of clust to
find out where this error message appears in the code and I could not find
it. Please let me know how can I make the clust work for "hclustWard"
method. Thanks!

Anirudh Kondaveeti
----------------------------

        [[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.

Reply via email to