Thank you very much for your answer.
I tried to run the function on my data and now I am getting this message of
error
Error in as.dist(dmat[clustering == i, clustering == i]) : (subscript)
logical subscript too long
Below the code I am using (version2.7.0 of R with all packages updated):
data
The given information is not enough to tell you what's going on. as.dist
doesn't appear in the given code and it's not clear to me what kind of
object img is (a small image doesn't tell me what R makes of it).
Also, try to read the help pages first and find out whether img is of the
format that
I am sorry I did not provide enough information.
I am not using img later, but data that is data.frame.
I wrote that img is a image just to explain what kind of data is coming
from, but the object I am using is data and it is a data.frame (checked many
times).
I am not using as.dist, but dist in
Thank. See below.
Laura
2008/6/14 Christian Hennig [EMAIL PROTECTED]:
What does str(ddata) give?
Class 'dist' atomic [1:130816] 69.2 117.1 145.6 179.9 195.6 ...
dcent doesn't make sense as input for cluster.stats, because you need a
dissimilarity matrix between all objects.
Yes I
Dear Laura,
I have R 2.6.0. I tried dist on a vector of length 200,000 and it told me
that it is too long. Theoretically, if you have 260,000 observations, the
length of the dist object should be 260,000*259,999/2, which is too large
for our computers, I guess. Which means that unfortunately
Thank you very much for all the info and support.
Now I managed to make it working on a small subset of the original data set.
I think that the first error message I got (Error in as.dist(dmat[clustering ==
i, clustering == i]) : (subscript) logical subscript too long)
is generated when the 2
Dear list,
I just tried to use the function cluster.stat in the package fpc.
I just have a couple of questions about the syntax:
cluster.stats(d,clustering,alt.clustering=NULL,
silhouette=TRUE,G2=FALSE,G3=FALSE)
1) the distance object (d) is an object obtained by the function dist() on
my own
Dear Laura,
Dear list,
I just tried to use the function cluster.stat in the package fpc.
I just have a couple of questions about the syntax:
cluster.stats(d,clustering,alt.clustering=NULL,
silhouette=TRUE,G2=FALSE,G3=FALSE)
1) the distance object (d) is an object obtained by the function
8 matches
Mail list logo