Hello:
What I want to do is quite simple, but I can't find a way.
I have a data frame with several points (x and y coords). I want to add
another column with cluster membership. For example aggregate all the points
that stand within a distance of 40 from each other.
I've tried using "nncluster" from the package nnclust, but the results are
not correct, for some reason (probably my mistake).
This is what I did:
x <- nncluster(as.matrix(dframe[,1:2]), threshold=35, fill = 1, maxclust =
NULL, give.up = 500,verbose=FALSE,start=NULL)#avaliar as clusters
Thanks,
Frederico
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.