Skip to content

agnes not working

2 messages · Dimitri Liakhovitski, Uwe Ligges

#
Hello!

I created a distances matrix for 13 objects using daisy (see the attached file).
I am trying to clusteranalyse it using agnes but it's not working.
What might be the problem:

mydistances<-read.csv("Results of daisy.csv")
mycluster<-agnes(mydistances, method="ward")

I am getting:
Error in agnes(mydistances, method = "ward") :
  NA/NaN/Inf in foreign function call (arg 15)

I am using R 2.13.1.
Thank you very much!
#
On 31.08.2011 21:16, Dimitri Liakhovitski wrote:
Your attachment did not make it through the filters:
Are you sure you have reasonable values in  mydistances?

Uwe Ligges