Re: [R] cluster of points

2012-07-31 Thread Jean V Adams
Frederico, This is not exactly what you're after, but perhaps it will help. In this example I fit a cluster analysis to the data, then I "cut the tree" at a height of 3 (you would do this with your data at a height of 40). It's not a perfect solution, but it might be good enough, depending on

[R] cluster of points

2012-07-30 Thread Frederico Mestre
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 "n