Let's say that your data.frame with the x and y coordnates is call "cosaxy"
A possible option would be: cosa.cc <- hclust(dist(cosaxy), "complete") cosa.35<- cutree(cosa.cc, h=35) cosa.35 is a vector that assign each point to a cluster that have a distance between their points less or equal than 35. HTH Marcelino Con fecha 31/7/2012, "Frederico Mestre" <[email protected]> escribió: >Hello: > > > >Having a data frame with x and y values for a set of points how can I >cluster all the points that stand within a given distance. > > > >As an example: create clusters of points that have a distance between them >less than 35. > > > >Thanks, > > > >Frederico > > > > > [[alternative HTML version deleted]] > >_______________________________________________ >R-sig-Geo mailing list >[email protected] >https://stat.ethz.ch/mailman/listinfo/r-sig-geo _______________________________________________ R-sig-Geo mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-geo
